[#EVP_PBE_alg_add] = EVP_PBE_alg_add :mrdocs: Register a password‐based encryption algorithm by NID with cipher, digest, and keygen. == Synopsis Declared in `<openssl/evp.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int EVP_PBE_alg_add( int nid, xref:EVP_CIPHER-07.adoc[EVP_CIPHER] const* cipher, xref:EVP_MD.adoc[EVP_MD] const* md, xref:EVP_PBE_KEYGEN.adoc[EVP_PBE_KEYGEN]* keygen); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#