Set a PBES1 AlgorithmIdentifier (OID, iteration count, and salt) with a library context.
Declared in <openssl/x509.h>
int
PKCS5_pbe_set0_algor_ex(
X509_ALGOR* algor,
int alg,
int iter,
unsigned char const* salt,
int saltlen,
OSSL_LIB_CTX* libctx);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| algor | Destination AlgorithmIdentifier updated in place. |
| alg | PBE algorithm NID. |
| iter | Iteration count for key derivation. |
| salt | Salt octets, or NULL to generate a random salt of length saltlen (or a default when saltlen is 0). |
| saltlen | Length of salt in bytes, or the length of salt to generate when salt is NULL. |
| libctx | Library context for random salt generation, or NULL for the default. |