Skip to content

Commit a0dc744

Browse files
committed
remove redundant guard.
1 parent 27f32e9 commit a0dc744

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

wolfcrypt/src/ecc.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11001,14 +11001,8 @@ int wc_ecc_import_x963_ex2(const byte* in, word32 inLen, ecc_key* key,
1100111001
buf_reverse(&key->keyRaw[keysize], &in[keysize], keysize);
1100211002
}
1100311003
#endif
11004-
#ifdef WOLFSSL_VALIDATE_ECC_IMPORT
1100511004
if (err == MP_OKAY)
1100611005
err = wc_ecc_check_key(key);
11007-
#else
11008-
/* Always validate ECC imports to prevent invalid curve attacks */
11009-
if (err == MP_OKAY)
11010-
err = wc_ecc_check_key(key);
11011-
#endif
1101211006
#if (!defined(WOLFSSL_VALIDATE_ECC_IMPORT) || \
1101311007
!defined(HAVE_ECC_CHECK_PUBKEY_ORDER)) && \
1101411008
!defined(WOLFSSL_ATECC508A) && !defined(WOLFSSL_ATECC608A) && \

0 commit comments

Comments
 (0)