Register a password-based encryption algorithm by NID with cipher, digest, and keygen.
Declared in <openssl/evp.h>
int
EVP_PBE_alg_add(
int nid,
EVP_CIPHER const* cipher,
EVP_MD const* md,
EVP_PBE_KEYGEN* keygen);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| nid | NID of the PBE algorithm OID being registered. |
| cipher | Cipher used by the algorithm, or NULL if none. |
| md | Digest used by the algorithm, or NULL if none. |
| keygen | Key/IV derivation callback invoked for this PBE algorithm. |