Skip to content

Update the DH key size check to include the exponent size check#425

Merged
jasonkatonica merged 1 commit intoIBM:java24from
taoliult:java24_dhkeysizechecks
Jan 29, 2025
Merged

Update the DH key size check to include the exponent size check#425
jasonkatonica merged 1 commit intoIBM:java24from
taoliult:java24_dhkeysizechecks

Conversation

@taoliult
Copy link
Collaborator

This is a back-port PR from PR #423

Move the checkKeyLengths() method from DHKeyFactory to DHKeyPairGenerator, rename it to checkKeySize(), and add a check for the exponent size, same as OpenJDK did.

Fixes #418

Signed-off-by: Tao Liu tao.liu@ibm.com

Move the checkKeyLengths() method from DHKeyFactory to
DHKeyPairGenerator, rename it to checkKeySize(), and add a check
for the exponent size, same as OpenJDK did.

Fixes IBM#418

Signed-off-by: Tao Liu <tao.liu@ibm.com>
Copy link
Member

@KostasTsiounis KostasTsiounis left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@jasonkatonica jasonkatonica left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@JinhangZhang JinhangZhang left a comment

Choose a reason for hiding this comment

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

LGTM

@jasonkatonica jasonkatonica merged commit 2a5dbc2 into IBM:java24 Jan 29, 2025
3 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.

5 participants