Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JCE: add KeyGenerator implementation for AES and HMAC #98

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

cconlon
Copy link
Member

@cconlon cconlon commented Jan 28, 2025

This PR implements KeyGenerator support in wolfJCE for the following algorithms:

  • AES
  • HmacSHA1
  • HmacSHA256
  • HmacSHA384
  • HmacSHA512

This will use wolfJCE's SecureRandom internally, which if using wolfCrypt FIPS 140-2/3 will use the validated Hash_DRBG implementation. This implementation includes a sanity check that if running in FIPS mode and SecureRandom is not provided by wolfJCE, an exception is thrown when trying to create the KeyGenerator.

Test code has been added in src/test/java/com/wolfssl/provider/jce/test/WolfCryptKeyGeneratorTest.java.

@cconlon cconlon self-assigned this Jan 28, 2025
@JacobBarthelmeh JacobBarthelmeh merged commit 5189c08 into wolfSSL:master Jan 29, 2025
41 checks passed
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