Verify a PKCS#1 PSS‐encoded digest using an explicit MGF1 hash (deprecated).

Synopsis

Declared in <openssl/rsa.h>

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

Deprecated. Use of this entity is allowed but discouraged.

Return Value

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

Parameters

Name

Description

rsa

RSA key whose modulus length defines the encoded message size.

mHash

Message digest that was signed.

Hash

Hash algorithm that produced mHash and labels the PSS encoding.

mgf1Hash

Hash algorithm used by MGF1, or NULL to use Hash.

EM

Encoded message to verify (typically RSA_size(rsa) bytes).

sLen

Salt length in bytes, or a special RSA_PSS_SALTLEN_* value.

Created with MrDocs