diff --git a/wolfcrypt/user-crypto/src/rsa.c b/wolfcrypt/user-crypto/src/rsa.c index e39ee6e68..974789ce7 100644 --- a/wolfcrypt/user-crypto/src/rsa.c +++ b/wolfcrypt/user-crypto/src/rsa.c @@ -2675,7 +2675,7 @@ int wc_RsaKeyToPublicDer(RsaKey* key, byte* output, word32 inLen) int wc_RsaSetRNG(RsaKey* key, WC_RNG* rng) { if (key == NULL) - return BAD_FUNC_ARG; + return USER_CRYPTO_ERROR; (void)rng;