Build a PBES2 AlgorithmIdentifier that derives the key with scrypt.
Declared in <openssl/x509.h>
X509_ALGOR*
PKCS5_pbe2_set_scrypt(
EVP_CIPHER const* cipher,
unsigned char const* salt,
int saltlen,
unsigned char* aiv,
uint64_t N,
uint64_t r,
uint64_t p);
New X509_ALGOR describing the PBES2/scrypt parameters, or NULL on error.
| Name | Description |
|---|---|
| cipher | Content-encryption cipher wrapped by PBES2. |
| salt | Salt octets for scrypt, or NULL to generate a default-length salt. |
| saltlen | Length of salt in bytes; ignored when salt is NULL. |
| aiv | Optional IV octets for cipher, or NULL to generate a suitable IV. |
| N | scrypt CPU/memory cost parameter. |
| r | scrypt block size parameter. |
| p | scrypt parallelization parameter. |