Initialise a cipher context for PKCS#12 PBE encryption or decryption.
Synopsis
Declared in <openssl/pkcs12.h>
int
PKCS12_PBE_keyivgen_ex(
EVP_CIPHER_CTX* ctx,
char const* pass,
int passlen,
ASN1_TYPE* param,
EVP_CIPHER const* cipher,
EVP_MD const* md_type,
int en_de,
OSSL_LIB_CTX* libctx,
char const* propq);
Return Value
1 on success, 0 on error.
Parameters
Name |
Description |
ctx |
Cipher context to initialise. |
pass |
Passphrase (treated as a byte sequence). |
passlen |
Length of |
param |
PBE algorithm parameters. |
cipher |
Cipher for the operation. |
md_type |
Message digest for key derivation. |
en_de |
1 to encrypt, 0 to decrypt. |
libctx |
Library context for algorithm fetching, or NULL for default. |
propq |
Property query for algorithm fetching, or NULL. |
Created with MrDocs