Initialise a cipher context for PKCS#12 PBE encryption or decryption.
Declared in <openssl/pkcs12.h>
int
PKCS12_PBE_keyivgen(
EVP_CIPHER_CTX* ctx,
char const* pass,
int passlen,
ASN1_TYPE* param,
EVP_CIPHER const* cipher,
EVP_MD const* md_type,
int en_de);
1 on success, 0 on error.
| Name | Description |
|---|---|
| ctx | Cipher context to initialise. |
| pass | Passphrase (treated as a byte sequence). |
| passlen | Length of pass, or -1 to use strlen(). |
| param | PBE algorithm parameters. |
| cipher | Cipher for the operation. |
| md_type | Message digest for key derivation. |
| en_de | 1 to encrypt, 0 to decrypt. |