Skip to content

Comments

AES and DESede SecretKeyFactory and SecretKey support#164

Merged
rlm2002 merged 1 commit intowolfSSL:masterfrom
cconlon:secretKey
Oct 31, 2025
Merged

AES and DESede SecretKeyFactory and SecretKey support#164
rlm2002 merged 1 commit intowolfSSL:masterfrom
cconlon:secretKey

Conversation

@cconlon
Copy link
Member

@cconlon cconlon commented Oct 29, 2025

This PR add support for AES and 3DES (DESede) SecretKeyFactory and SecretKey in wolfJCE.

New WolfCryptSecretKey class for AES (16/24/32 byte keys) and 3DES (DESede) 24-byte keys. Extends WolfCryptSecretKeyFactory for AES/DESede support.

Adds JUnit test coverage for new functionality.

@cconlon cconlon self-assigned this Oct 29, 2025
@cconlon cconlon requested a review from Copilot October 29, 2025 18:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for AES and DESede (3DES) SecretKeyFactory implementations to the wolfJCE provider. The key additions include a new WolfCryptSecretKey class that implements SecretKey interface with support for key validation, destruction, and proper encapsulation. The factory classes have been extended to handle non-PBE key generation, translation, and retrieval.

  • New WolfCryptSecretKey class implementing SecretKey with AES and DESede support
  • Extended WolfCryptSecretKeyFactory to handle AES and DESede key operations
  • Comprehensive test coverage for both new classes
  • Provider registration for new SecretKeyFactory implementations

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 19 comments.

Show a summary per file
File Description
WolfCryptSecretKey.java New SecretKey implementation with key validation, destruction support, and proper encapsulation for AES and DESede algorithms
WolfCryptSecretKeyFactory.java Extended to support AES/DESede key generation, translation, and spec retrieval via new factory types and helper methods
WolfCryptSecretKeyTest.java New comprehensive test suite covering key creation, validation, destruction, equality, and isolation
WolfCryptSecretKeyFactoryTest.java Extended tests for AES SecretKeyFactory operations including generation, translation, and cipher integration
WolfCryptProvider.java Registered new AES and DESede SecretKeyFactory services
WolfJCETestSuite.java Added WolfCryptSecretKeyTest to test suite
infer.sh Added WolfCryptSecretKey.java to static analysis

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rlm2002 rlm2002 merged commit 08889ab into wolfSSL:master Oct 31, 2025
46 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.

2 participants