FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/rsa.c
/* Sign the hash of a message using RSA-PSS.
 * Salt length is equal to hash length.
 *
 * in      Buffer holding hash of message.
 * inLen   Length of data in buffer (hash length).
 * out     Buffer to write encrypted signature into.
 * outLen  Size of buffer to write to.
 * hash    Hash algorithm.
 * mgf     Mask generation function.
 * key     Public RSA key.
 * rng     Random number generator.
 * returns the length of the encrypted signature on success, a negative value
 * indicates failure.
 */
Sign the hash of a message using RSA-PSS.
Salt length is equal to hash length.

in      Buffer holding hash of message.
inLen   Length of data in buffer (hash length).
out     Buffer to write encrypted signature into.
outLen  Size of buffer to write to.
hash    Hash algorithm.
mgf     Mask generation function.
key     Public RSA key.
rng     Random number generator.
returns the length of the encrypted signature on success, a negative value
indicates failure.
Sign the hash of a message using RSA - PSS . Salt length is equal to hash length . in Buffer holding hash of message . inLen Length of data in buffer ( hash length ) . out Buffer to write encrypted signature into . outLen Size of buffer to write to . hash Hash algorithm . mgf Mask generation function . key Public RSA key . rng Random number generator . returns the length of the encrypted signature on success a negative value indicates failure .
int wc_RsaPSS_Sign(const byte* in, word32 inLen, byte* out, word32 outLen,
                       enum wc_HashType hash, int mgf, RsaKey* key, WC_RNG* rng)
{
    return wc_RsaPSS_Sign_ex(in, inLen, out, outLen, hash, mgf,
                                            RSA_PSS_SALT_LEN_DEFAULT, key, rng);
}
int wc_RsaPSS_Sign ( const byte * in , word32 inLen , byte * out , word32 outLen , enum wc_HashType hash , int mgf , RsaKey * key , WC_RNG * rng ) { return wc_RsaPSS_Sign_ex ( in , inLen , out , outLen , hash , mgf , RSA_PSS_SALT_LEN_DEFAULT , key , rng ) ; }
Sign the hash of a message using RSA-PSS.
Sign the hash of a message using RSA - PSS .