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

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).

en_de

1 to encrypt, or 0 to decrypt.

libctx

Library context for algorithm fetches, or NULL for the default.

propq

Property query for algorithm fetches, or NULL.

Created with MrDocs