[#PKCS5_pbe_set0_algor] = PKCS5_pbe_set0_algor :mrdocs: Set a PKCS#5 PBE algorithm OID and parameters into an existing X509_ALGOR. == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int PKCS5_pbe_set0_algor( xref:X509_ALGOR.adoc[X509_ALGOR]* algor, int alg, int iter, unsigned char const* salt, int saltlen); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *algor* | AlgorithmIdentifier to update in place. | *alg* | PBE algorithm NID (for example NID_pbeWithMD5AndDES_CBC). | *iter* | PBKDF iteration count. | *salt* | Optional salt bytes, or NULL to generate `saltlen` random bytes (0 uses a default length). | *saltlen* | Salt length in bytes, or size to generate when `salt` is NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#