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

Name

Description

algor

AlgorithmIdentifier to update in place.

alg

PBE algorithm NID (for example NID_pbeWithMD5AndDES_CBC).

iter

PBKDF iteration count.

salt

Optional salt bytes, or NULL to generate saltlen random bytes (0 uses a default length).

saltlen

Salt length in bytes, or size to generate when salt is NULL.

Created with MrDocs