Set the RSA‐PSS salt length used when generating an RSA‐PSS key.

Synopsis

Declared in <openssl/rsa.h>

int
EVP_PKEY_CTX_set_rsa_pss_keygen_saltlen(
    EVP_PKEY_CTX* ctx,
    int saltlen);

Return Value

1 on success, or a non‐positive value on failure.

Parameters

Name

Description

ctx

Keygen context for an RSA‐PSS key type.

saltlen

Salt length in bytes, or a special value such as RSA_PSS_SALTLEN_DIGEST.

Created with MrDocs