Skip to content

Commit 2b9e995

Browse files
authored
Merge pull request #7242 from SparkiDev/ct_valgrind_fixes_3
RSA ct test: force RsaFunctionCheckIn to not be inlined
2 parents 06f04de + f031d03 commit 2b9e995

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

wolfcrypt/src/rsa.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3082,7 +3082,7 @@ int cc310_RsaSSL_Verify(const byte* in, word32 inLen, byte* sig,
30823082
#ifndef WOLF_CRYPTO_CB_ONLY_RSA
30833083
#if !defined(WOLFSSL_RSA_VERIFY_ONLY) && !defined(TEST_UNPAD_CONSTANT_TIME) && !defined(NO_RSA_BOUNDS_CHECK)
30843084
/* Check that 1 < in < n-1. (Requirement of 800-56B.) */
3085-
static int RsaFunctionCheckIn(const byte* in, word32 inLen, RsaKey* key,
3085+
int RsaFunctionCheckIn(const byte* in, word32 inLen, RsaKey* key,
30863086
int checkSmallCt)
30873087
{
30883088
int ret = 0;

wolfssl/wolfcrypt/rsa.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,8 @@ WOLFSSL_LOCAL int wc_RsaUnPad_ex(byte* pkcsBlock, word32 pkcsBlockLen, byte** ou
444444
int bits, void* heap);
445445

446446
WOLFSSL_LOCAL int wc_hash2mgf(enum wc_HashType hType);
447+
WOLFSSL_LOCAL int RsaFunctionCheckIn(const byte* in, word32 inLen, RsaKey* key,
448+
int checkSmallCt);
447449

448450
#ifdef __cplusplus
449451
} /* extern "C" */

0 commit comments

Comments
 (0)