RSA_padding_add_PKCS1_PSS_mgf1

Encode an EMSA-PSS padded block using an explicit MGF1 hash (deprecated).

Synopsis

Declared in <openssl/rsa.h>

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

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
rsaRSA key providing the modulus length.
EMDestination encoded message of length RSA_size(rsa).
mHashHash of the message being signed.
HashDigest method that produced mHash.
mgf1HashHash algorithm used by MGF1, or NULL to use Hash.
sLenSalt length in bytes, or RSA_PSS_SALTLEN_* special values.