Decrypt a PKCS#8 encrypted private key using a library context.
Synopsis
Declared in <openssl/pkcs12.h>
PKCS8_PRIV_KEY_INFO*
PKCS8_decrypt_ex(
X509_SIG const* p8,
char const* pass,
int passlen,
OSSL_LIB_CTX* ctx,
char const* propq);
Return Value
Decrypted PKCS#8 private key info, or NULL on error.
Parameters
Name |
Description |
p8 |
Encrypted PKCS#8 structure (X509_SIG). |
pass |
Passphrase for decryption. |
passlen |
Length of |
ctx |
Library context for algorithm fetching, or NULL for default. |
propq |
Property query for algorithm fetching, or NULL. |
Created with MrDocs