Skip to content

xtest: add regression tests for CAAM short key assert#814

Open
zidel wants to merge 1 commit into
OP-TEE:masterfrom
zidel:caam_short_key_assert
Open

xtest: add regression tests for CAAM short key assert#814
zidel wants to merge 1 commit into
OP-TEE:masterfrom
zidel:caam_short_key_assert

Conversation

@zidel
Copy link
Copy Markdown

@zidel zidel commented May 5, 2026

This adds several tests that all reproduce the same assertion failure in the NXP CAAM driver using different entry points that all end up in data_to_serialized_key. In all three cases the issue is that the private key ends up being 12 bytes or shorter through either ECDSA, DSA or DH.

The ECDH test uses data from test vector 315 in Wycheproofs ecdh_secp256r1_test.json suite.

Related to OP-TEE/optee_os#7800

This adds several tests that all reproduce the same assertion failure in
the NXP CAAM driver using different entry points that all end up in
data_to_serialized_key. In all three cases the issue is that the
private key ends up being 12 bytes or shorter through either ECDSA, DSA
or DH.

The ECDH test uses data from test vector 315 in Wycheproofs
ecdh_secp256r1_test.json suite.

Signed-off-by: Martin Nyhus <martin@nyhus.dev>
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.

1 participant