Skip to content

Fix algorithm names in GenerateSecret tests - #1722

Open
jasonkatonica wants to merge 1 commit into
IBM:mainfrom
jasonkatonica:katonica/issue1721/fixtestalgorithmsecdhxdh
Open

Fix algorithm names in GenerateSecret tests#1722
jasonkatonica wants to merge 1 commit into
IBM:mainfrom
jasonkatonica:katonica/issue1721/fixtestalgorithmsecdhxdh

Conversation

@jasonkatonica

Copy link
Copy Markdown
Member

BaseTestECDH.test_engineGenerateSecret and
BaseTestXDH.test_engineGenerateSecret were using "DH" for both KeyPairGenerator and KeyAgreement instead of the correct algorithm names "ECDH" and "XDH" respectively. This caused the tests to exercise the wrong key agreement algorithm rather than the one under test.

Fixes: #1721

Signed-off-by: Jason Katonica katonica@us.ibm.com

BaseTestECDH.test_engineGenerateSecret and
BaseTestXDH.test_engineGenerateSecret were using "DH" for both
KeyPairGenerator and KeyAgreement instead of the correct algorithm names
"ECDH" and "XDH" respectively. This caused the tests to exercise the
wrong key agreement algorithm rather than the one under test.

Fixes: IBM#1721

Signed-off-by: Jason Katonica <katonica@us.ibm.com>

@KostasTsiounis KostasTsiounis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@taoliult taoliult left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

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.

Modify BaseTestECDH.java and BaseTestXDH.java to use correct algorithm

4 participants