RSA_verify_PKCS1_PSS

Verify an RSA-PSS encoded message EM against a message hash (deprecated).

Synopsis

Declared in <openssl/rsa.h>

[[deprecated]]
int
RSA_verify_PKCS1_PSS(
    RSA* rsa,
    unsigned char const* mHash,
    EVP_MD const* Hash,
    unsigned char const* EM,
    int sLen);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 if the PSS encoding is valid, or 0 on failure.

Parameters

NameDescription
rsaRSA public key used for verification context (size / parameters).
mHashHash of the original message.
HashDigest that produced mHash and is used by PSS.
EMEncoded message of RSA_size(rsa) bytes (typically after RSA public operation).
sLenPSS salt length in bytes, or a special negative sentinel accepted by the implementation.