1PKCS12_DECRYPT_SKEY(3ossl)          OpenSSL         PKCS12_DECRYPT_SKEY(3ossl)
2
3
4

NAME

6       PKCS12_decrypt_skey, PKCS12_decrypt_skey_ex - PKCS12 shrouded keyBag
7       decrypt functions
8

SYNOPSIS

10        #include <openssl/pkcs12.h>
11
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,
16                                                    OSSL_LIB_CTX *ctx,
17                                                    const char *propq);
18

DESCRIPTION

20       PKCS12_decrypt_skey() Decrypt the PKCS#8 shrouded keybag contained
21       within bag using the supplied password pass of length passlen.
22
23       PKCS12_decrypt_skey_ex() is similar to the above but allows for a
24       library contex ctx and property query propq to be used to select
25       algorithm implementations.
26

RETURN VALUES

28       Both functions will return the decrypted key or NULL if an error
29       occurred.
30

CONFORMING TO

32       IETF RFC 7292 (<https://tools.ietf.org/html/rfc7292>)
33

SEE ALSO

35       PKCS8_decrypt_ex(3), PKCS8_encrypt_ex(3), PKCS12_add_key_ex(3),
36       PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(3)
37

HISTORY

39       PKCS12_decrypt_skey_ex() was added in OpenSSL 3.0.
40
42       Copyright 2021 The OpenSSL Project Authors. All Rights Reserved.
43
44       Licensed under the Apache License 2.0 (the "License").  You may not use
45       this file except in compliance with the License.  You can obtain a copy
46       in the file LICENSE in the source distribution or at
47       <https://www.openssl.org/source/license.html>.
48
49
50
513.0.5                             2022-11-01        PKCS12_DECRYPT_SKEY(3ossl)
Impressum