Decrypt the PKCS#8 shrouded key in a pkcs8ShroudedKeyBag safeBag.
Declared in <openssl/pkcs12.h>
PKCS8_PRIV_KEY_INFO*
PKCS12_decrypt_skey_ex(
PKCS12_SAFEBAG const* bag,
char const* pass,
int passlen,
OSSL_LIB_CTX* ctx,
char const* propq);
Decrypted PKCS#8 private key info, or NULL on error.
| Name | Description |
|---|---|
| bag | SafeBag containing an encrypted private key. |
| pass | Passphrase for decryption. |
| passlen | Length of pass, or -1 to use strlen(). |
| ctx | Library context for algorithm fetching, or NULL for default. |
| propq | Property query for algorithm fetching, or NULL. |