Skip to content

Fix key selection for KEG/KExp15 tests in 04-pkey.t - #551

Merged
chipitsine merged 1 commit into
gost-engine:masterfrom
allBoo:fix-04-pkey-test
Nov 19, 2026
Merged

chipitsine merged 1 commit into
gost-engine:masterfrom
allBoo:fix-04-pkey-test

Conversation

@allBoo

@allBoo allBoo commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

After the GKT loop, recip.prv.pem contains a GOST 2001 key, which does not support KEG/KExp15. As a result, the positive KEG tests used an incompatible key and failed.
Generate a separate GOST 2012 key for the positive tests and retain the GOST 2001 key to verify the expected rejection. Update the test plan and engine skip count, and remove the temporary key afterward.

After the GKT loop, recip.prv.pem contains a GOST 2001 key, which does not support KEG/KExp15. As a result, the positive KEG tests used an incompatible key and failed.
Generate a separate GOST 2012 key for the positive tests and retain the GOST 2001 key to verify the expected rejection. Update the test plan and engine skip count, and remove the temporary key afterward.
@chipitsine
chipitsine merged commit 6d625ce into gost-engine:master Nov 19, 2026
23 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