Home
last modified time | relevance | path

Searched refs:PKCS12 (Results 1 – 25 of 49) sorted by relevance

12

/freebsd/crypto/heimdal/lib/asn1/
H A Dpkcs12.asn13 PKCS12 DEFINITIONS ::=
34 PKCS12-MacData ::= SEQUENCE {
40 PKCS12-PFX ::= SEQUENCE {
43 macData PKCS12-MacData OPTIONAL
51 PKCS12-Attribute ::= SEQUENCE {
56 PKCS12-Attributes ::= SET OF PKCS12-Attribute
58 PKCS12-SafeBag ::= SEQUENCE {
64 PKCS12-SafeContents ::= SEQUENCE OF PKCS12-SafeBag
66 PKCS12-CertBag ::= SEQUENCE {
71 PKCS12-PBEParams ::= SEQUENCE {
[all …]
/freebsd/crypto/openssl/include/openssl/
H A Dpkcs12.h57 typedef struct PKCS12_st PKCS12; typedef
118 int PKCS12_mac_present(const PKCS12 *p12);
123 const PKCS12 *p12);
199 STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12);
250 PKCS12 *PKCS12_init(int mode);
297 DECLARE_ASN1_FUNCTIONS(PKCS12)
333 PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);
337 int i2d_PKCS12_bio(BIO *bp, const PKCS12 *p12);
339 int i2d_PKCS12_fp(FILE *fp, const PKCS12 *p12);
341 PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12);
[all …]
H A Dpkcs12.h.in58 typedef struct PKCS12_st PKCS12; typedef
95 int PKCS12_mac_present(const PKCS12 *p12);
100 const PKCS12 *p12);
176 STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12);
227 PKCS12 *PKCS12_init(int mode);
274 DECLARE_ASN1_FUNCTIONS(PKCS12)
310 PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);
314 int i2d_PKCS12_bio(BIO *bp, const PKCS12 *p12);
316 int i2d_PKCS12_fp(FILE *fp, const PKCS12 *p12);
318 PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12);
[all …]
/freebsd/crypto/openssl/crypto/pkcs12/
H A Dp12_utl.c227 int i2d_PKCS12_bio(BIO *bp, const PKCS12 *p12) in i2d_PKCS12_bio()
229 return ASN1_item_i2d_bio(ASN1_ITEM_rptr(PKCS12), bp, p12); in i2d_PKCS12_bio()
233 int i2d_PKCS12_fp(FILE *fp, const PKCS12 *p12) in i2d_PKCS12_fp()
235 return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS12), fp, p12); in i2d_PKCS12_fp()
239 PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12) in d2i_PKCS12_bio()
241 return ASN1_item_d2i_bio(ASN1_ITEM_rptr(PKCS12), bp, p12); in d2i_PKCS12_bio()
245 PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12) in d2i_PKCS12_fp()
247 return ASN1_item_d2i_fp(ASN1_ITEM_rptr(PKCS12), fp, p12); in d2i_PKCS12_fp()
H A Dp12_asn.c18 ASN1_SEQUENCE(PKCS12) = {
19 ASN1_SIMPLE(PKCS12, version, ASN1_INTEGER),
20 ASN1_SIMPLE(PKCS12, authsafes, PKCS7),
21 ASN1_OPT(PKCS12, mac, PKCS12_MAC_DATA)
22 } ASN1_SEQUENCE_END(PKCS12)
24 IMPLEMENT_ASN1_FUNCTIONS(PKCS12)
H A Dp12_init.c18 PKCS12 *PKCS12_init_ex(int mode, OSSL_LIB_CTX *ctx, const char *propq) in PKCS12_init_ex()
20 PKCS12 *pkcs12; in PKCS12_init_ex()
54 PKCS12 *PKCS12_init(int mode) in PKCS12_init()
H A Dp12_mutl.c24 int PKCS12_mac_present(const PKCS12 *p12) in PKCS12_mac_present()
33 const PKCS12 *p12) in PKCS12_get0_mac()
76 static int pkcs12_gen_mac(PKCS12 *p12, const char *pass, int passlen, in pkcs12_gen_mac()
178 int PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen, in PKCS12_gen_mac()
185 int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen) in PKCS12_verify_mac()
209 int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen, in PKCS12_set_mac()
242 int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt, int saltlen, in PKCS12_setup_mac()
H A Dp12_crt.c37 PKCS12 *PKCS12_create_ex(const char *pass, const char *name, EVP_PKEY *pkey, in PKCS12_create_ex()
42 PKCS12 *p12 = NULL; in PKCS12_create_ex()
148 PKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey, X509 *cert, in PKCS12_create()
336 PKCS12 *PKCS12_add_safes_ex(STACK_OF(PKCS7) *safes, int nid_p7, in PKCS12_add_safes_ex()
339 PKCS12 *p12; in PKCS12_add_safes_ex()
356 PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int nid_p7) in PKCS12_add_safes()
H A Dp12_npas.c20 static int newpass_p12(PKCS12 *p12, const char *oldpass, const char *newpass);
32 int PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass) in PKCS12_newpass()
58 static int newpass_p12(PKCS12 *p12, const char *oldpass, const char *newpass) in newpass_p12()
H A Dp12_kiss.c17 static int parse_pk12(PKCS12 *p12, const char *pass, int passlen,
33 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, in PKCS12_parse()
136 static int parse_pk12(PKCS12 *p12, const char *pass, int passlen, in parse_pk12()
H A Dp12_add.c185 int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes) in PKCS12_pack_authsafes()
193 STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12) in STACK_OF()
/freebsd/crypto/heimdal/lib/hx509/
H A Dtest_query.in48 PKCS12:$srcdir/data/test.p12 >/dev/null 2>/dev/null || exit 1
59 PKCS12:$srcdir/data/test.p12 >/dev/null 2>/dev/null || exit 1
65 PKCS12:$srcdir/data/test.p12 >/dev/null 2>/dev/null || exit 1
71 PKCS12:$srcdir/data/test.p12 >/dev/null 2>/dev/null && exit 1
86 PKCS12:$srcdir/data/test-nopw.p12 >/dev/null 2>/dev/null || exit 1
92 PKCS12:$srcdir/data/test.p12 >/dev/null 2>/dev/null || exit 1
98 PKCS12:$srcdir/data/sub-cert.p12 >/dev/null 2>/dev/null && exit 1
105 PKCS12:$srcdir/data/test.p12 > /dev/null || exit 1
112 PKCS12:$srcdir/data/test.p12 >/dev/null 2>/dev/null && exit 1
H A Dtest_nist_pkcs12.in66 if ${hxtool} validate $pass PKCS12:$a > /dev/null; then
/freebsd/crypto/openssl/test/helpers/
H A Dpkcs12.c39 static int write_p12(PKCS12 *p12, const char *outfile);
41 static PKCS12 *from_bio_p12(BIO *bio, const PKCS12_ENC *mac);
43 static int check_p12_mac(PKCS12 *p12, const PKCS12_ENC *mac);
148 PKCS12 *p12; in generate_p12()
193 static int write_p12(PKCS12 *p12, const char *outfile) in write_p12()
211 PKCS12 *p12 = NULL; in from_bio_p12()
240 PKCS12 *p12 = NULL; in read_p12()
662 PKCS12 *p12; in start_check_pkcs12()
682 PKCS12 *p12; in start_check_pkcs12_with_mac()
702 PKCS12 *p12; in start_check_pkcs12_file()
[all …]
/freebsd/crypto/openssl/doc/man3/
H A DPKCS12_init.pod11 PKCS12 *PKCS12_init(int mode);
12 PKCS12 *PKCS12_init_ex(int mode, OSSL_LIB_CTX *ctx, const char *propq);
22 operations performed on the B<PKCS12> object.
26 PKCS12_init() and PKCS12_init_ex() return a valid B<PKCS12> structure or NULL
H A DPKCS12_newpass.pod5 PKCS12_newpass - change the password of a PKCS12 structure
11 int PKCS12_newpass(PKCS12 *p12, const char *oldpass, const char *newpass);
15 PKCS12_newpass() changes the password of a PKCS12 structure.
17 B<p12> is a pointer to a PKCS12 structure. B<oldpass> is the existing password
35 with a MAC verification error. In rare cases the PKCS12 structure does not
58 PKCS12 *p12;
H A DPKCS12_gen_mac.pod12 int PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen,
14 int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen);
15 int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen,
18 int PKCS12_setup_mac(PKCS12 *p12, int iter, unsigned char *salt,
H A DPKCS12_add_safe.pod18 PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int p7_nid);
19 PKCS12 *PKCS12_add_safes_ex(STACK_OF(PKCS7) *safes, int p7_nid,
46 PKCS12_add_safes() creates a B<PKCS12> structure containing the supplied set of
64 PKCS12_add_safes() returns a valid B<PKCS12> structure or NULL if an error occurred.
H A DPKCS12_create.pod11 PKCS12 *PKCS12_create(const char *pass, const char *name, EVP_PKEY *pkey,
14 PKCS12 *PKCS12_create_ex(const char *pass, const char *name, EVP_PKEY *pkey,
61 used for the corresponding B<friendlyName> in the PKCS12 structure instead.
63 used for the corresponding B<localKeyID> in the PKCS12 structure instead of the
68 B<localKeyID> in the PKCS12 structure.
87 PKCS12_create() returns a valid B<PKCS12> structure or NULL if an error occurred.
H A DPKCS12_parse.pod11 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert,
16 PKCS12_parse() parses a PKCS12 structure.
18 B<p12> is the B<PKCS12> structure to parse. B<pass> is the passphrase to use.
/freebsd/crypto/openssl/demos/pkcs12/
H A Dpkread.c18 static char *find_friendly_name(PKCS12 *p12) in find_friendly_name()
54 PKCS12 *p12 = NULL; in main()
H A Dpkwrite.c23 PKCS12 *p12; in main()
/freebsd/crypto/openssl/demos/
H A DREADME.txt44 pkread.c Print out a description of a PKCS12 file.
45 pkwrite.c Add a password to an existing PKCS12 file.
/freebsd/crypto/openssl/test/
H A Dpkcs12_format_test.c716 PKCS12 *p12 = NULL; in pkcs12_create_test()
802 PKCS12 *p12 = NULL; in pkcs12_recreate_test()
803 PKCS12 *p12_parsed = NULL; in pkcs12_recreate_test()
804 PKCS12 *p12_recreated = NULL; in pkcs12_recreate_test()
/freebsd/crypto/openssl/apps/
H A DCA.pl.in29 my $PKCS12 = "$openssl pkcs12";
189 $RET = run("$PKCS12 -in $NEWCERT -inkey $NEWKEY"

12