PKCS5_v2_scrypt_keyivgen_ex

Initialize ctx for scrypt-based PBE using a library context.

Synopsis

Declared in <openssl/evp.h>

int
PKCS5_v2_scrypt_keyivgen_ex(
    EVP_CIPHER_CTX* ctx,
    char const* pass,
    int passlen,
    ASN1_TYPE* param,
    EVP_CIPHER const* c,
    EVP_MD const* md,
    int en_de,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
ctxCipher context to initialize.
passPassword bytes.
passlenLength of pass, or -1 if NUL-terminated.
paramASN.1 parameters describing salt and scrypt settings.
cContent cipher to initialize.
mdUnused for scrypt (may be NULL).
en_de1 to encrypt, or 0 to decrypt.
libctxLibrary context for algorithm fetches, or NULL for the default.
propqProperty query for algorithm fetches, or NULL.