Skip to content

Commit 2856f3d

Browse files
Add opt-out macro NO_DSA_PUBKEY_CHECK to allow skipping the newly added DSA public key check.
1 parent 8e75a56 commit 2856f3d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.wolfssl_known_macro_extras

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ NO_CURVE448_KEY_EXPORT
387387
NO_CURVE448_KEY_IMPORT
388388
NO_CURVE448_SHARED_SECRET
389389
NO_DEV_URANDOM
390+
NO_DSA_PUBKEY_CHECK
390391
NO_ECC384
391392
NO_ECC521
392393
NO_ECC_CACHE_CURVE

wolfcrypt/src/dsa.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,9 +1137,11 @@ int wc_DsaVerify_ex(const byte* digest, word32 digestSz, const byte* sig,
11371137

11381138
/* Validate domain parameters and public key before doing any
11391139
* signature math. */
1140+
#ifndef NO_DSA_PUBKEY_CHECK
11401141
ret = wc_DsaCheckPubKey(key);
11411142
if (ret != 0)
11421143
return ret;
1144+
#endif
11431145

11441146
do {
11451147
#ifdef WOLFSSL_SMALL_STACK

0 commit comments

Comments
 (0)