/freebsd/crypto/heimdal/lib/asn1/ |
H A D | pkcs12.asn1 | 3 PKCS12 DEFINITIONS ::= 34 PKCS12-MacData ::= SEQUENCE { 40 PKCS12-PFX ::= SEQUENCE { 43 macData PKCS12-MacData OPTIONAL 46 PKCS12-AuthenticatedSafe ::= SEQUENCE OF ContentInfo 51 PKCS12-Attribute ::= SEQUENCE { 56 PKCS12-Attributes ::= SET OF PKCS12-Attribute 58 PKCS12-SafeBag ::= SEQUENCE { 61 bagAttributes PKCS12-Attributes OPTIONAL 64 PKCS12-SafeContents ::= SEQUENCE OF PKCS12-SafeBag [all …]
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | pkcs12.h | 57 typedef struct PKCS12_st PKCS12; typedef 118 int PKCS12_mac_present(const PKCS12 *p12); 123 const PKCS12 *p12); 198 int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes); 199 STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12); 250 PKCS12 *PKCS12_init(int mode); 251 PKCS12 *PKCS12_init_ex(int mode, OSSL_LIB_CTX *ctx, const char *propq); 282 int PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen, 284 int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen); 285 int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen, [all …]
|
H A D | pkcs12.h.in | 58 typedef struct PKCS12_st PKCS12; typedef 95 int PKCS12_mac_present(const PKCS12 *p12); 100 const PKCS12 *p12); 175 int PKCS12_pack_authsafes(PKCS12 *p12, STACK_OF(PKCS7) *safes); 176 STACK_OF(PKCS7) *PKCS12_unpack_authsafes(const PKCS12 *p12); 227 PKCS12 *PKCS12_init(int mode); 228 PKCS12 *PKCS12_init_ex(int mode, OSSL_LIB_CTX *ctx, const char *propq); 259 int PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen, 261 int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen); 262 int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen, [all …]
|
/freebsd/crypto/openssl/crypto/pkcs12/ |
H A D | p12_utl.c | 227 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 D | p12_asn.c | 18 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 D | p12_mutl.c | 24 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 D | p12_init.c | 18 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 D | p12_crt.c | 37 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() 339 PKCS12 *PKCS12_add_safes_ex(STACK_OF(PKCS7) *safes, int nid_p7, in PKCS12_add_safes_ex() 342 PKCS12 *p12; in PKCS12_add_safes_ex() 359 PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7) *safes, int nid_p7) in PKCS12_add_safes()
|
H A D | p12_npas.c | 20 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 D | p12_kiss.c | 17 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 D | p12_add.c | 185 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 D | test_query.in | 48 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 D | test_nist_pkcs12.in | 66 if ${hxtool} validate $pass PKCS12:$a > /dev/null; then
|
/freebsd/crypto/openssl/test/helpers/ |
H A D | pkcs12.c | 39 static int write_p12(PKCS12 *p12, const char *outfile); 41 static PKCS12 *from_bio_p12(BIO *bio, const PKCS12_ENC *mac); 42 static PKCS12 *read_p12(const char *infile, 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() 209 static PKCS12 *from_bio_p12(BIO *bio, const PKCS12_ENC *mac) in from_bio_p12() 211 PKCS12 *p12 = NULL; in from_bio_p12() 238 static PKCS12 *read_p12(const char *infile, const PKCS12_ENC *mac) in read_p12() 240 PKCS12 *p12 = NULL; in read_p12() [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | PKCS12_init.pod | 11 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 D | PKCS12_newpass.pod | 5 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 D | PKCS12_gen_mac.pod | 12 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 D | PKCS12_add_safe.pod | 18 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 D | PKCS12_create.pod | 11 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 D | PKCS12_parse.pod | 11 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 D | pkread.c | 18 static char *find_friendly_name(PKCS12 *p12) in find_friendly_name() 54 PKCS12 *p12 = NULL; in main()
|
H A D | pkwrite.c | 23 PKCS12 *p12; in main()
|
/freebsd/crypto/openssl/demos/ |
H A D | README.txt | 44 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 D | pkcs12_format_test.c | 716 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 D | CA.pl.in | 29 my $PKCS12 = "$openssl pkcs12"; 189 $RET = run("$PKCS12 -in $NEWCERT -inkey $NEWKEY"
|