Skip to content

Conversation

@holtrop
Copy link
Contributor

@holtrop holtrop commented Nov 20, 2025

Description

Add wrappers for:

  • wc_RNG_DRBG_Reseed()
  • wc_RNG_TestSeed()
  • wc_RNG_HealthTest_ex()

Testing

Unit tests.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@holtrop holtrop self-assigned this Nov 20, 2025
@holtrop holtrop marked this pull request as ready for review November 20, 2025 21:14
@holtrop holtrop assigned wolfSSL-Bot and unassigned holtrop Nov 20, 2025
@holtrop holtrop requested a review from gasbytes November 20, 2025 21:15
}

#[test]
fn test_rng_reseed() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't you add #[cfg(random_hashdrbg)] on top of fn test_rng_reseed(){}? Since the reseed() function method is only compiled when the random_hashdrbg feature is enabled, this test will fail if that feature is not available.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for mentioning! I actually intended to add it to all of these new methods and tests!

@holtrop holtrop force-pushed the rust-wc-random-additions branch from 9717bb8 to 15b55ef Compare November 21, 2025 13:31
@holtrop holtrop requested a review from gasbytes November 21, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants