pkcs12.h File Reference

PKCS12_KEY_ID

PKCS12_IV_ID

PKCS12_MAC_ID

PKCS12_DEFAULT_ITER

PKCS12_MAC_KEY_LENGTH

PKCS12_SALT_LEN

PKCS12_key_gen

PKCS12_add_friendlyname

KEY_EX

KEY_SIG

PREDECLARE_STACK_OF ( PKCS12_SAFEBAG )

PREDECLARE_STACK_OF(PKCS12_SAFEBAG)

PKCS12_SAFEBAG

PKCS12_SAFEBAG

DECLARE_STACK_OF ( PKCS12_SAFEBAG )

DECLARE_STACK_OF(PKCS12_SAFEBAG)

PKCS12_BAGS

PKCS12_BAGS

PKCS12_ERROR

PKCS12_OK

M_PKCS12_x5092certbag

M_PKCS12_x509crl2certbag

M_PKCS12_certbag2x509

M_PKCS12_certbag2x509crl

M_PKCS12_unpack_p7data

M_PKCS12_pack_authsafes

M_PKCS12_unpack_authsafes

M_PKCS12_unpack_p7encdata

M_PKCS12_decrypt_skey

M_PKCS8_decrypt

M_PKCS12_bag_type

M_PKCS12_cert_bag_type

M_PKCS12_crl_bag_type

PKCS12_get_attr

PKCS8_get_attr

PKCS12_mac_present

PKCS12_x5092certbag ( X509 * )

IMPORT_C PKCS12_SAFEBAG *PKCS12_x5092certbag(X509 *x509)

PKCS12_x509crl2certbag ( X509_CRL * )

IMPORT_C PKCS12_SAFEBAG *PKCS12_x509crl2certbag(X509_CRL *crl)

PKCS12_certbag2x509 ( PKCS12_SAFEBAG * )

IMPORT_C X509 *PKCS12_certbag2x509(PKCS12_SAFEBAG *bag)

PKCS12_certbag2x509crl ( PKCS12_SAFEBAG * )

IMPORT_C X509_CRL *PKCS12_certbag2x509crl(PKCS12_SAFEBAG *bag)

PKCS12_item_pack_safebag ( void *, const ASN1_ITEM *, int, int )

IMPORT_C PKCS12_SAFEBAG *PKCS12_item_pack_safebag(void *obj,
const ASN1_ITEM *it,
intnid1,
intnid2
)

PKCS12_MAKE_KEYBAG ( PKCS8_PRIV_KEY_INFO * )

IMPORT_C PKCS12_SAFEBAG *PKCS12_MAKE_KEYBAG(PKCS8_PRIV_KEY_INFO *p8)

PKCS8_decrypt ( X509_SIG *, const char *, int )

IMPORT_C PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(X509_SIG *p8,
const char *pass,
intpasslen
)

PKCS12_decrypt_skey ( PKCS12_SAFEBAG *, const char *, int )

IMPORT_C PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(PKCS12_SAFEBAG *bag,
const char *pass,
intpasslen
)

PKCS8_encrypt ( int, const EVP_CIPHER *, const char *, int, unsigned char *, int, int, PKCS8_PRIV_KEY_INFO * )

IMPORT_C X509_SIG *PKCS8_encrypt(intpbe_nid,
const EVP_CIPHER *cipher,
const char *pass,
intpasslen,
unsigned char *salt,
intsaltlen,
intiter,
PKCS8_PRIV_KEY_INFO *p8
)

PKCS12_MAKE_SHKEYBAG ( int, const char *, int, unsigned char *, int, int, PKCS8_PRIV_KEY_INFO * )

IMPORT_C PKCS12_SAFEBAG *PKCS12_MAKE_SHKEYBAG(intpbe_nid,
const char *pass,
intpasslen,
unsigned char *salt,
intsaltlen,
intiter,
PKCS8_PRIV_KEY_INFO *p8
)

PKCS12_pack_p7data ( STACK_OF(PKCS12_SAFEBAG)* )

IMPORT_C PKCS7 *PKCS12_pack_p7data(STACK_OF(PKCS12_SAFEBAG)*sk)

STACK_OF ( PKCS12_SAFEBAG )

IMPORT_CSTACK_OF(PKCS12_SAFEBAG)

PKCS12_pack_p7encdata ( int, const char *, int, unsigned char *, int, int, STACK_OF(PKCS12_SAFEBAG)* )

IMPORT_C PKCS7 *PKCS12_pack_p7encdata(intpbe_nid,
const char *pass,
intpasslen,
unsigned char *salt,
intsaltlen,
intiter,
STACK_OF(PKCS12_SAFEBAG)*bags
)

pass

IMPORT_C const char *pass

passlen

IMPORT_C const char intpasslen

PKCS12_pack_authsafes ( PKCS12 *, STACK_OF(PKCS7)* )

IMPORT_C intPKCS12_pack_authsafes(PKCS12 *p12,
STACK_OF(PKCS7)*safes
)

STACK_OF ( PKCS7 )

IMPORT_CSTACK_OF(PKCS7)

PKCS12_add_localkeyid ( PKCS12_SAFEBAG *, unsigned char *, int )

IMPORT_C intPKCS12_add_localkeyid(PKCS12_SAFEBAG *bag,
unsigned char *name,
intnamelen
)

PKCS12_add_friendlyname_asc ( PKCS12_SAFEBAG *, const char *, int )

IMPORT_C intPKCS12_add_friendlyname_asc(PKCS12_SAFEBAG *bag,
const char *name,
intnamelen
)

PKCS12_add_CSPName_asc ( PKCS12_SAFEBAG *, const char *, int )

IMPORT_C intPKCS12_add_CSPName_asc(PKCS12_SAFEBAG *bag,
const char *name,
intnamelen
)

PKCS12_add_friendlyname_uni ( PKCS12_SAFEBAG *, const unsigned char *, int )

IMPORT_C intPKCS12_add_friendlyname_uni(PKCS12_SAFEBAG *bag,
const unsigned char *name,
intnamelen
)

PKCS8_add_keyusage ( PKCS8_PRIV_KEY_INFO *, int )

IMPORT_C intPKCS8_add_keyusage(PKCS8_PRIV_KEY_INFO *p8,
intusage
)

PKCS12_get_attr_gen ( STACK_OF(X509_ATTRIBUTE)*, int )

IMPORT_C ASN1_TYPE *PKCS12_get_attr_gen(STACK_OF(X509_ATTRIBUTE)*attrs,
intattr_nid
)

PKCS12_get_friendlyname ( PKCS12_SAFEBAG * )

IMPORT_C char *PKCS12_get_friendlyname(PKCS12_SAFEBAG *bag)

PKCS12_pbe_crypt ( X509_ALGOR *, const char *, int, unsigned char *, int, unsigned char **, int *, int )

IMPORT_C unsigned char *PKCS12_pbe_crypt(X509_ALGOR *algor,
const char *pass,
intpasslen,
unsigned char *in,
intinlen,
unsigned char **data,
int *datalen,
inten_de
)

PKCS12_item_decrypt_d2i ( X509_ALGOR *, const ASN1_ITEM *, const char *, int, ASN1_OCTET_STRING *, int )

IMPORT_C void *PKCS12_item_decrypt_d2i(X509_ALGOR *algor,
const ASN1_ITEM *it,
const char *pass,
intpasslen,
ASN1_OCTET_STRING *oct,
intzbuf
)

PKCS12_item_i2d_encrypt ( X509_ALGOR *, const ASN1_ITEM *, const char *, int, void *, int )

IMPORT_C ASN1_OCTET_STRING *PKCS12_item_i2d_encrypt(X509_ALGOR *algor,
const ASN1_ITEM *it,
const char *pass,
intpasslen,
void *obj,
intzbuf
)

PKCS12_init ( int )

IMPORT_C PKCS12 *PKCS12_init(intmode)

PKCS12_key_gen_asc ( const char *, int, unsigned char *, int, int, int, int, unsigned char *, const EVP_MD * )

IMPORT_C intPKCS12_key_gen_asc(const char *pass,
intpasslen,
unsigned char *salt,
intsaltlen,
intid,
intiter,
intn,
unsigned char *out,
const EVP_MD *md_type
)

PKCS12_key_gen_uni ( unsigned char *, int, unsigned char *, int, int, int, int, unsigned char *, const EVP_MD * )

IMPORT_C intPKCS12_key_gen_uni(unsigned char *pass,
intpasslen,
unsigned char *salt,
intsaltlen,
intid,
intiter,
intn,
unsigned char *out,
const EVP_MD *md_type
)

PKCS12_PBE_keyivgen ( EVP_CIPHER_CTX *, const char *, int, ASN1_TYPE *, const EVP_CIPHER *, const EVP_MD *, int )

IMPORT_C intPKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx,
const char *pass,
intpasslen,
ASN1_TYPE *param,
const EVP_CIPHER *cipher,
const EVP_MD *md_type,
inten_de
)

PKCS12_gen_mac ( PKCS12 *, const char *, int, unsigned char *, unsigned int * )

IMPORT_C intPKCS12_gen_mac(PKCS12 *p12,
const char *pass,
intpasslen,
unsigned char *mac,
unsigned int *maclen
)

PKCS12_verify_mac ( PKCS12 *, const char *, int )

IMPORT_C intPKCS12_verify_mac(PKCS12 *p12,
const char *pass,
intpasslen
)

PKCS12_set_mac ( PKCS12 *, const char *, int, unsigned char *, int, int, const EVP_MD * )

IMPORT_C intPKCS12_set_mac(PKCS12 *p12,
const char *pass,
intpasslen,
unsigned char *salt,
intsaltlen,
intiter,
const EVP_MD *md_type
)

PKCS12_setup_mac ( PKCS12 *, int, unsigned char *, int, const EVP_MD * )

IMPORT_C intPKCS12_setup_mac(PKCS12 *p12,
intiter,
unsigned char *salt,
intsaltlen,
const EVP_MD *md_type
)

asc2uni ( const char *, int, unsigned char **, int * )

IMPORT_C unsigned char *asc2uni(const char *asc,
intasclen,
unsigned char **uni,
int *unilen
)

uni2asc ( unsigned char *, int )

IMPORT_C char *uni2asc(unsigned char *uni,
intunilen
)

DECLARE_ASN1_FUNCTIONS ( PKCS12 )

DECLARE_ASN1_FUNCTIONS(PKCS12)

PKCS12_parse ( PKCS12 *, const char *, EVP_PKEY **, X509 **, STACK_OF(X509)** )

IMPORT_C intPKCS12_parse(PKCS12 *p12,
const char *pass,
EVP_PKEY **pkey,
X509 **cert,
STACK_OF(X509)**ca
)

PKCS12_create ( char *, char *, EVP_PKEY *, X509 *, STACK_OF(X509)*, int, int, int, int, int )

IMPORT_C PKCS12 *PKCS12_create(char *pass,
char *name,
EVP_PKEY *pkey,
X509 *cert,
STACK_OF(X509)*ca,
intnid_key,
intnid_cert,
intiter,
intmac_iter,
intkeytype
)

PKCS12_add_cert ( STACK_OF(PKCS12_SAFEBAG)**, X509 * )

IMPORT_C PKCS12_SAFEBAG *PKCS12_add_cert(STACK_OF(PKCS12_SAFEBAG)**pbags,
X509 *cert
)

PKCS12_add_key ( STACK_OF(PKCS12_SAFEBAG)**, EVP_PKEY *, int, int, int, char * )

IMPORT_C PKCS12_SAFEBAG *PKCS12_add_key(STACK_OF(PKCS12_SAFEBAG)**pbags,
EVP_PKEY *key,
intkey_usage,
intiter,
intkey_nid,
char *pass
)

PKCS12_add_safe ( STACK_OF(PKCS7)**, STACK_OF(PKCS12_SAFEBAG)*, int, int, char * )

IMPORT_C intPKCS12_add_safe(STACK_OF(PKCS7)**psafes,
STACK_OF(PKCS12_SAFEBAG)*bags,
intsafe_nid,
intiter,
char *pass
)

PKCS12_add_safes ( STACK_OF(PKCS7)*, int )

IMPORT_C PKCS12 *PKCS12_add_safes(STACK_OF(PKCS7)*safes,
intp7_nid
)

i2d_PKCS12_bio ( BIO *, PKCS12 * )

IMPORT_C inti2d_PKCS12_bio(BIO *bp,
PKCS12 *p12
)

i2d_PKCS12_fp ( FILE *, PKCS12 * )

IMPORT_C inti2d_PKCS12_fp(FILE *fp,
PKCS12 *p12
)

d2i_PKCS12_bio ( BIO *, PKCS12 ** )

IMPORT_C PKCS12 *d2i_PKCS12_bio(BIO *bp,
PKCS12 **p12
)

d2i_PKCS12_fp ( FILE *, PKCS12 ** )

IMPORT_C PKCS12 *d2i_PKCS12_fp(FILE *fp,
PKCS12 **p12
)

PKCS12_newpass ( PKCS12 *, char *, char * )

IMPORT_C intPKCS12_newpass(PKCS12 *p12,
char *oldpass,
char *newpass
)

ERR_load_PKCS12_strings ( void )

IMPORT_C voidERR_load_PKCS12_strings(void)

PKCS12_F_PARSE_BAG

PKCS12_F_PARSE_BAGS

PKCS12_F_PKCS12_ADD_FRIENDLYNAME

PKCS12_F_PKCS12_ADD_FRIENDLYNAME_ASC

PKCS12_F_PKCS12_ADD_FRIENDLYNAME_UNI

PKCS12_F_PKCS12_ADD_LOCALKEYID

PKCS12_F_PKCS12_CREATE

PKCS12_F_PKCS12_GEN_MAC

PKCS12_F_PKCS12_INIT

PKCS12_F_PKCS12_ITEM_DECRYPT_D2I

PKCS12_F_PKCS12_ITEM_I2D_ENCRYPT

PKCS12_F_PKCS12_ITEM_PACK_SAFEBAG

PKCS12_F_PKCS12_KEY_GEN_ASC

PKCS12_F_PKCS12_KEY_GEN_UNI

PKCS12_F_PKCS12_MAKE_KEYBAG

PKCS12_F_PKCS12_MAKE_SHKEYBAG

PKCS12_F_PKCS12_NEWPASS

PKCS12_F_PKCS12_PACK_P7DATA

PKCS12_F_PKCS12_PACK_P7ENCDATA

PKCS12_F_PKCS12_PARSE

PKCS12_F_PKCS12_PBE_CRYPT

PKCS12_F_PKCS12_PBE_KEYIVGEN

PKCS12_F_PKCS12_SETUP_MAC

PKCS12_F_PKCS12_SET_MAC

PKCS12_F_PKCS12_UNPACK_AUTHSAFES

PKCS12_F_PKCS12_UNPACK_P7DATA

PKCS12_F_PKCS12_VERIFY_MAC

PKCS12_F_PKCS8_ADD_KEYUSAGE

PKCS12_F_PKCS8_ENCRYPT

PKCS12_R_CANT_PACK_STRUCTURE

PKCS12_R_CONTENT_TYPE_NOT_DATA

PKCS12_R_DECODE_ERROR

PKCS12_R_ENCODE_ERROR

PKCS12_R_ENCRYPT_ERROR

PKCS12_R_ERROR_SETTING_ENCRYPTED_DATA_TYPE

PKCS12_R_INVALID_NULL_ARGUMENT

PKCS12_R_INVALID_NULL_PKCS12_POINTER

PKCS12_R_IV_GEN_ERROR

PKCS12_R_KEY_GEN_ERROR

PKCS12_R_MAC_ABSENT

PKCS12_R_MAC_GENERATION_ERROR

PKCS12_R_MAC_SETUP_ERROR

PKCS12_R_MAC_STRING_SET_ERROR

PKCS12_R_MAC_VERIFY_ERROR

PKCS12_R_MAC_VERIFY_FAILURE

PKCS12_R_PARSE_ERROR

PKCS12_R_PKCS12_ALGOR_CIPHERINIT_ERROR

PKCS12_R_PKCS12_CIPHERFINAL_ERROR

PKCS12_R_PKCS12_PBE_CRYPT_ERROR

PKCS12_R_UNKNOWN_DIGEST_ALGORITHM

PKCS12_R_UNSUPPORTED_PKCS12_MODE