From 832af2164bfc5712765397b19467a3c55c2fa0bd Mon Sep 17 00:00:00 2001 From: aidan garske Date: Mon, 9 Mar 2026 11:43:41 -0700 Subject: [PATCH] Fix copy-paste error in EncodeCertReq guard check where falconKey was checked twice instead of including dilithiumKey and sphincsKey --- wolfcrypt/src/asn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index bfa90e5423..c817b20035 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -33565,7 +33565,7 @@ static int EncodeCertReq(Cert* cert, DerCert* der, RsaKey* rsaKey, if (rsaKey == NULL && eccKey == NULL && ed25519Key == NULL && dsaKey == NULL && ed448Key == NULL && falconKey == NULL && - falconKey == NULL) { + dilithiumKey == NULL && sphincsKey == NULL) { return PUBLIC_KEY_E; }