Skip to content

Commit 832af21

Browse files
committed
Fix copy-paste error in EncodeCertReq guard check where falconKey was checked twice instead of including dilithiumKey and sphincsKey
1 parent b3f08f3 commit 832af21

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33565,7 +33565,7 @@ static int EncodeCertReq(Cert* cert, DerCert* der, RsaKey* rsaKey,
3356533565

3356633566
if (rsaKey == NULL && eccKey == NULL && ed25519Key == NULL &&
3356733567
dsaKey == NULL && ed448Key == NULL && falconKey == NULL &&
33568-
falconKey == NULL) {
33568+
dilithiumKey == NULL && sphincsKey == NULL) {
3356933569
return PUBLIC_KEY_E;
3357033570
}
3357133571

0 commit comments

Comments
 (0)