[#PKCS5_pbe2_set_scrypt] = PKCS5_pbe2_set_scrypt :mrdocs: Build a PBES2 AlgorithmIdentifier that derives the key with scrypt. == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:X509_ALGOR.adoc[X509_ALGOR]* PKCS5_pbe2_set_scrypt( xref:EVP_CIPHER-07.adoc[EVP_CIPHER] const* cipher, unsigned char const* salt, int saltlen, unsigned char* aiv, uint64_t N, uint64_t r, uint64_t p); ---- == Return Value New X509_ALGOR describing the PBES2/scrypt parameters, or NULL on error. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#