EVP_PBE_alg_add

Register a password-based encryption algorithm by NID with cipher, digest, and keygen.

Synopsis

Declared in <openssl/evp.h>

int
EVP_PBE_alg_add(
    int nid,
    EVP_CIPHER const* cipher,
    EVP_MD const* md,
    EVP_PBE_KEYGEN* keygen);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
nidNID of the PBE algorithm OID being registered.
cipherCipher used by the algorithm, or NULL if none.
mdDigest used by the algorithm, or NULL if none.
keygenKey/IV derivation callback invoked for this PBE algorithm.