FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/rsa.c
/* Verify the message signed with RSA-PSS.
 * The input buffer is reused for the output buffer.
 * Salt length is equal to hash length.
 *
 * in     Buffer holding encrypted data.
 * inLen  Length of data in buffer.
 * out    Pointer to address containing the PSS data.
 * hash   Hash algorithm.
 * mgf    Mask generation function.
 * key    Public RSA key.
 * returns the length of the PSS data on success and negative indicates failure.
 */
Verify the message signed with RSA-PSS.
The input buffer is reused for the output buffer.
Salt length is equal to hash length.

in     Buffer holding encrypted data.
inLen  Length of data in buffer.
out    Pointer to address containing the PSS data.
hash   Hash algorithm.
mgf    Mask generation function.
key    Public RSA key.
returns the length of the PSS data on success and negative indicates failure.
Verify the message signed with RSA - PSS . The input buffer is reused for the output buffer . Salt length is equal to hash length . in Buffer holding encrypted data . inLen Length of data in buffer . out Pointer to address containing the PSS data . hash Hash algorithm . mgf Mask generation function . key Public RSA key . returns the length of the PSS data on success and negative indicates failure .
int wc_RsaPSS_VerifyInline(byte* in, word32 inLen, byte** out,
                           enum wc_HashType hash, int mgf, RsaKey* key)
{
#ifndef WOLFSSL_PSS_SALT_LEN_DISCOVER
    return wc_RsaPSS_VerifyInline_ex(in, inLen, out, hash, mgf,
                                                 RSA_PSS_SALT_LEN_DEFAULT, key);
#else
    return wc_RsaPSS_VerifyInline_ex(in, inLen, out, hash, mgf,
                                                RSA_PSS_SALT_LEN_DISCOVER, key);
#endif
}
int wc_RsaPSS_VerifyInline ( byte * in , word32 inLen , byte * * out , enum wc_HashType hash , int mgf , RsaKey * key ) { #ifndef WOLFSSL_PSS_SALT_LEN_DISCOVER return wc_RsaPSS_VerifyInline_ex ( in , inLen , out , hash , mgf , RSA_PSS_SALT_LEN_DEFAULT , key ) ; #else return wc_RsaPSS_VerifyInline_ex ( in , inLen , out , hash , mgf , RSA_PSS_SALT_LEN_DISCOVER , key ) ; #endif }
Verify the message signed with RSA-PSS.
Verify the message signed with RSA - PSS .