Skip to content

Commit fa87e22

Browse files
committed
Restore useful comments above wc_RsaDirect in the .c file.
1 parent 916c22e commit fa87e22

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

wolfcrypt/src/rsa.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2868,6 +2868,9 @@ static int wc_RsaFunctionAsync(const byte* in, word32 inLen, byte* out,
28682868
#endif /* WOLFSSL_ASYNC_CRYPT && WC_ASYNC_ENABLE_RSA */
28692869

28702870
#if defined(WC_RSA_DIRECT) || defined(WC_RSA_NO_PADDING)
2871+
/* Performs direct RSA computation without padding. The input and output must
2872+
* match the key size (ex: 2048-bits = 256 bytes). Returns the size of the
2873+
* output on success or negative value on failure. */
28712874
int wc_RsaDirect(byte* in, word32 inLen, byte* out, word32* outSz,
28722875
RsaKey* key, int type, WC_RNG* rng)
28732876
{

0 commit comments

Comments
 (0)