Skip to content

Conversation

@dev-koan
Copy link
Collaborator

This update adds support for PBES2, PBEKeyFactory, PBEKey, and PBEParameters for PBE algorithms with Hmac and AES for OpenJCEPlus provider.

Back-ported from: #833

Signed-off-by: Dev Agarwal [email protected]

@dev-koan
Copy link
Collaborator Author

dev-koan commented Oct 31, 2025

FYI
-> Modified hashcode() in PBEKey.java to return the same value as jdk17.
-> Added PBEUtil.java file as it doesn't exist in jdk17 and back
-> PBES2Parameter.java was modified with a change in parseKDF() compared to main.
-> PBE algorithms with the hash function SHA512\224 or SHA512\256 were removed as they are not supported in the base Cipher.java in openjdk. In this function openjdk doesn't account for algorithms having \ in the name which can found in the newer jdk version (here)

@dev-koan dev-koan force-pushed the implement_pbe_17 branch 3 times, most recently from f726aaa to e40e967 Compare November 3, 2025 05:34
@dev-koan dev-koan requested review from KostasTsiounis, jasonkatonica and taoliult and removed request for jasonkatonica November 3, 2025 11:22

The following algorithms are registered by the OpenJCEPlus and OpenJCEPlusFIPS providers.

| Algorithm Type | Algorithm Name | OpenJCEPlusFIPS | OpenJCEPlus | Notes |
Copy link
Member

Choose a reason for hiding this comment

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

Can this table match the column widths of main branch. I do acknowledge that the 512/224,512/256 have been removed but the rest of the table i think has different formatting. Keeping the table as close as possible to other branches makes it easier to maintain.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated.

This update adds support for PBES2, PBEKeyFactory, PBEKey,
and PBEParameters for PBE algorithms with Hmac and AES for
OpenJCEPlus provider.

Signed-off-by: Dev Agarwal <[email protected]>
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