/external/boringssl/src/crypto/pem/ |
pem_pk8.c | 117 PKCS8_PRIV_KEY_INFO *p8inf; local 120 if(!(p8inf = EVP_PKEY2PKCS8(x))) { 131 PKCS8_PRIV_KEY_INFO_free(p8inf); 137 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf); 139 PKCS8_PRIV_KEY_INFO_free(p8inf); 145 if(isder) ret = i2d_PKCS8_PRIV_KEY_INFO_bio(bp, p8inf); 146 else ret = PEM_write_bio_PKCS8_PRIV_KEY_INFO(bp, p8inf); 147 PKCS8_PRIV_KEY_INFO_free(p8inf); 154 PKCS8_PRIV_KEY_INFO *p8inf = NULL; local 170 p8inf = PKCS8_decrypt(p8, psbuf, klen) [all...] |
pem_pkey.c | 91 PKCS8_PRIV_KEY_INFO *p8inf; local 92 p8inf=d2i_PKCS8_PRIV_KEY_INFO(NULL, &p, len); 93 if(!p8inf) goto p8err; 94 ret = EVP_PKCS82PKEY(p8inf); 99 PKCS8_PRIV_KEY_INFO_free(p8inf); 101 PKCS8_PRIV_KEY_INFO *p8inf; local 116 p8inf = PKCS8_decrypt(p8, psbuf, klen); 118 if(!p8inf) goto p8err; 119 ret = EVP_PKCS82PKEY(p8inf); 124 PKCS8_PRIV_KEY_INFO_free(p8inf); [all...] |
/external/boringssl/src/crypto/x509/ |
x_all.c | 411 PKCS8_PRIV_KEY_INFO **p8inf) 414 d2i_PKCS8_PRIV_KEY_INFO,fp,p8inf); 417 int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf) 420 p8inf); 425 PKCS8_PRIV_KEY_INFO *p8inf; local 427 p8inf = EVP_PKEY2PKCS8(key); 428 if(!p8inf) return 0; 429 ret = i2d_PKCS8_PRIV_KEY_INFO_fp(fp, p8inf); 430 PKCS8_PRIV_KEY_INFO_free(p8inf); 455 PKCS8_PRIV_KEY_INFO **p8inf) 469 PKCS8_PRIV_KEY_INFO *p8inf; local [all...] |