Skip to content

unit_test/test_crypt: Guard EdDSA tests per-algorithm#3632

Merged
jyao1 merged 1 commit into
DMTF:mainfrom
jyao1:eddsa_test
Jun 2, 2026
Merged

unit_test/test_crypt: Guard EdDSA tests per-algorithm#3632
jyao1 merged 1 commit into
DMTF:mainfrom
jyao1:eddsa_test

Conversation

@jyao1
Copy link
Copy Markdown
Member

@jyao1 jyao1 commented Jun 1, 2026

The Ed-DSA signing test and the EdDSA X.509 test were guarded by the combined (LIBSPDM_EDDSA_ED25519_SUPPORT || LIBSPDM_EDDSA_ED448_SUPPORT) condition but then exercised both Ed25519 and Ed448 unconditionally. A backend that supports only one curve would therefore fail on the unsupported curve.

Guard each curve by its own LIBSPDM_EDDSA_ED25519_SUPPORT / LIBSPDM_EDDSA_ED448_SUPPORT macro so the test runs whichever curve(s) the crypto backend actually supports.

@jyao1 jyao1 requested a review from steven-bellock as a code owner June 1, 2026 06:26
@jyao1 jyao1 added the test For tests and testing infrastructure label Jun 1, 2026
The Ed-DSA signing test and the EdDSA X.509 test were guarded by the
combined (LIBSPDM_EDDSA_ED25519_SUPPORT || LIBSPDM_EDDSA_ED448_SUPPORT)
condition but then exercised both Ed25519 and Ed448 unconditionally. A
backend that supports only one curve would therefore fail on the
unsupported curve.

Guard each curve by its own LIBSPDM_EDDSA_ED25519_SUPPORT /
LIBSPDM_EDDSA_ED448_SUPPORT macro so the test runs whichever curve(s)
the crypto backend actually supports.

Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
@jyao1 jyao1 merged commit 4a86929 into DMTF:main Jun 2, 2026
97 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test For tests and testing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant