mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
fixes for --disable-harden.
This commit is contained in:
@ -11749,7 +11749,11 @@ int wc_ecc_encrypt(ecc_key* privKey, ecc_key* pubKey, const byte* msg,
|
||||
|
||||
#ifndef WOLFSSL_ECIES_OLD
|
||||
if (privKey->type == ECC_PRIVATEKEY_ONLY) {
|
||||
#ifdef ECC_TIMING_RESISTANT
|
||||
ret = wc_ecc_make_pub_ex(privKey, NULL, privKey->rng);
|
||||
#else
|
||||
ret = wc_ecc_make_pub_ex(privKey, NULL, NULL);
|
||||
#endif
|
||||
if (ret != 0)
|
||||
return ret;
|
||||
}
|
||||
|
@ -24405,6 +24405,8 @@ static int ecc_encrypt_kat(WC_RNG *rng)
|
||||
ret = -10456;
|
||||
}
|
||||
}
|
||||
#else
|
||||
(void)rng;
|
||||
#endif
|
||||
|
||||
if (ret == 0) {
|
||||
@ -31136,7 +31138,9 @@ static int pkcs7enveloped_run_vectors(byte* rsaCert, word32 rsaCertSz,
|
||||
|
||||
pkcs7EnvelopedVector *testVectors = NULL;
|
||||
|
||||
#ifdef ECC_TIMING_RESISTANT
|
||||
XMEMSET(&rng, 0, sizeof(rng));
|
||||
#endif
|
||||
|
||||
testVectors = (pkcs7EnvelopedVector *)XMALLOC(MAX_TESTVECTORS_LEN * sizeof(*testVectors),
|
||||
HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);
|
||||
|
Reference in New Issue
Block a user