From fa87e227b434766cfc84af9d73b2626785ef2610 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 23 Jan 2024 08:39:35 -0800 Subject: [PATCH] Restore useful comments above wc_RsaDirect in the .c file. --- wolfcrypt/src/rsa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfcrypt/src/rsa.c b/wolfcrypt/src/rsa.c index 39c618540..d8c27cd42 100644 --- a/wolfcrypt/src/rsa.c +++ b/wolfcrypt/src/rsa.c @@ -2868,6 +2868,9 @@ static int wc_RsaFunctionAsync(const byte* in, word32 inLen, byte* out, #endif /* WOLFSSL_ASYNC_CRYPT && WC_ASYNC_ENABLE_RSA */ #if defined(WC_RSA_DIRECT) || defined(WC_RSA_NO_PADDING) +/* Performs direct RSA computation without padding. The input and output must + * match the key size (ex: 2048-bits = 256 bytes). Returns the size of the + * output on success or negative value on failure. */ int wc_RsaDirect(byte* in, word32 inLen, byte* out, word32* outSz, RsaKey* key, int type, WC_RNG* rng) {