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

Name

Description

rsa

RSA public key used for verification context (size / parameters).

mHash

Hash of the original message.

Hash

Digest that produced mHash and is used by PSS.

EM

Encoded message of RSA_size(rsa) bytes (typically after RSA public operation).

sLen

PSS salt length in bytes, or a special negative sentinel accepted by the implementation.

Created with MrDocs