Set the password for a PBE-based EVP_PKEY_CTX derivation (PKCS#5 style).
Declared in <openssl/kdf.h>
int
EVP_PKEY_CTX_set1_pbe_pass(
EVP_PKEY_CTX* ctx,
char const* pass,
int passlen);
1 on success, or a non-positive value on failure.
| Name | Description |
|---|---|
| ctx | Key-derivation context. |
| pass | Password bytes (may contain embedded NULs). |
| passlen | Length of pass in bytes. |