5 PKCS12_decrypt_skey, PKCS12_decrypt_skey_ex - PKCS12 shrouded keyBag
10 #include <openssl/pkcs12.h>
12 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,
13 const char *pass, int passlen);
14 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey_ex(const PKCS12_SAFEBAG *bag,
15 const char *pass, int passlen,
21 PKCS12_decrypt_skey() Decrypt the PKCS#8 shrouded keybag contained within I<bag>
22 using the supplied password I<pass> of length I<passlen>.
24 PKCS12_decrypt_skey_ex() is similar to the above but allows for a library contex
25 I<ctx> and property query I<propq> to be used to select algorithm implementations.
29 Both functions will return the decrypted key or NULL if an error occurred.
33 IETF RFC 7292 (L<https://tools.ietf.org/html/rfc7292>)
37 L<PKCS8_decrypt_ex(3)>,
38 L<PKCS8_encrypt_ex(3)>,
39 L<PKCS12_add_key_ex(3)>,
40 L<PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(3)>
44 PKCS12_decrypt_skey_ex() was added in OpenSSL 3.0.
48 Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
50 Licensed under the Apache License 2.0 (the "License"). You may not use
51 this file except in compliance with the License. You can obtain a copy
52 in the file LICENSE in the source distribution or at
53 L<https://www.openssl.org/source/license.html>.