Build a PKCS#5 PBES2 AlgorithmIdentifier for cipher with PBKDF2.
Synopsis
Declared in <openssl/x509.h>
X509_ALGOR*
PKCS5_pbe2_set(
EVP_CIPHER const* cipher,
int iter,
unsigned char* salt,
int saltlen);
Return Value
New X509_ALGOR encoding PBES2 parameters, or NULL on error; free with X509_ALGOR_free().
Parameters
Name |
Description |
cipher |
Content‐encryption cipher for the PBES2 encryption scheme. |
iter |
PBKDF2 iteration count; <=0 selects the default. |
salt |
Optional salt bytes; NULL generates a random salt of |
saltlen |
Salt length in bytes when |
Created with MrDocs