Set the password for a PBE‐based EVP_PKEY_CTX derivation (PKCS#5 style).

Synopsis

Declared in <openssl/kdf.h>

int
EVP_PKEY_CTX_set1_pbe_pass(
    EVP_PKEY_CTX* ctx,
    char const* pass,
    int passlen);

Return Value

1 on success, or a non‐positive value on failure.

Parameters

Name

Description

ctx

Key‐derivation context.

pass

Password bytes (may contain embedded NULs).

passlen

Length of pass in bytes.

Created with MrDocs