PKCS5_pbe_set0_algor

Set a PKCS#5 PBE algorithm OID and parameters into an existing X509_ALGOR.

Synopsis

Declared in <openssl/x509.h>

int
PKCS5_pbe_set0_algor(
    X509_ALGOR* algor,
    int alg,
    int iter,
    unsigned char const* salt,
    int saltlen);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
algorAlgorithmIdentifier to update in place.
algPBE algorithm NID (for example NID_pbeWithMD5AndDES_CBC).
iterPBKDF iteration count.
saltOptional salt bytes, or NULL to generate saltlen random bytes (0 uses a default length).
saltlenSalt length in bytes, or size to generate when salt is NULL.