PKCS5_pbe_set_ex

Build a PKCS#5 PBE AlgorithmIdentifier using an explicit library context.

Synopsis

Declared in <openssl/x509.h>

X509_ALGOR*
PKCS5_pbe_set_ex(
    int alg,
    int iter,
    unsigned char const* salt,
    int saltlen,
    OSSL_LIB_CTX* libctx);

Return Value

New X509_ALGOR, or NULL on error; free with X509_ALGOR_free().

Parameters

NameDescription
algPBE algorithm NID.
iterIteration count.
saltSalt bytes, or NULL to generate a random salt of saltlen.
saltlenSalt length in bytes.
libctxLibrary context used when generating a random salt, or NULL for the default.