From e606cccb1034d0f2cead2e88fb4225a453351971 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Wed, 4 May 2022 14:20:44 +0200 Subject: [PATCH] wc_RsaEncryptSize needed in verify only and no-PSS builds --- wolfcrypt/src/rsa.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index e12883c28..9ff1f0719 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -3992,8 +3992,6 @@ int wc_RsaPSS_Sign_ex(const byte* in, word32 inLen, byte* out, word32 outLen, #endif #endif -#if !defined(WOLFSSL_RSA_VERIFY_ONLY) || !defined(WOLFSSL_SP_MATH) || \ - defined(WC_RSA_PSS) int wc_RsaEncryptSize(const RsaKey* key) { int ret; @@ -4012,7 +4010,6 @@ int wc_RsaEncryptSize(const RsaKey* key) return ret; } -#endif #ifndef WOLFSSL_RSA_VERIFY_ONLY /* flatten RsaKey structure into individual elements (e, n) */