Initialize ctx for PBE using scrypt parameters from ASN.1 (PKCS#5 v2).

Synopsis

Declared in <openssl/evp.h>

int
PKCS5_v2_scrypt_keyivgen(
    EVP_CIPHER_CTX* ctx,
    char const* pass,
    int passlen,
    ASN1_TYPE* param,
    EVP_CIPHER const* c,
    EVP_MD const* md,
    int en_de);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

ctx

Cipher context to initialize.

pass

Password bytes.

passlen

Length of pass, or ‐1 if NUL‐terminated.

param

ASN.1 parameters describing salt and scrypt settings.

c

Content cipher to initialize.

md

Unused for scrypt (may be NULL); retained for keygen callback signature compatibility.

en_de

1 to encrypt, or 0 to decrypt.

Created with MrDocs