Home
last modified time | relevance | path

Searched refs:p8inf (Results 1 – 9 of 9) sorted by relevance

/external/boringssl/src/crypto/pem/
Dpem_pk8.c117 PKCS8_PRIV_KEY_INFO *p8inf; in do_pk8pkey() local
120 if(!(p8inf = EVP_PKEY2PKCS8(x))) { in do_pk8pkey()
131 PKCS8_PRIV_KEY_INFO_free(p8inf); in do_pk8pkey()
137 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf); in do_pk8pkey()
139 PKCS8_PRIV_KEY_INFO_free(p8inf); in do_pk8pkey()
145 if(isder) ret = i2d_PKCS8_PRIV_KEY_INFO_bio(bp, p8inf); in do_pk8pkey()
146 else ret = PEM_write_bio_PKCS8_PRIV_KEY_INFO(bp, p8inf); in do_pk8pkey()
147 PKCS8_PRIV_KEY_INFO_free(p8inf); in do_pk8pkey()
154 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in d2i_PKCS8PrivateKey_bio() local
170 p8inf = PKCS8_decrypt(p8, psbuf, klen); in d2i_PKCS8PrivateKey_bio()
[all …]
Dpem_pkey.c91 PKCS8_PRIV_KEY_INFO *p8inf; in PEM_read_bio_PrivateKey() local
92 p8inf=d2i_PKCS8_PRIV_KEY_INFO(NULL, &p, len); in PEM_read_bio_PrivateKey()
93 if(!p8inf) goto p8err; in PEM_read_bio_PrivateKey()
94 ret = EVP_PKCS82PKEY(p8inf); in PEM_read_bio_PrivateKey()
99 PKCS8_PRIV_KEY_INFO_free(p8inf); in PEM_read_bio_PrivateKey()
101 PKCS8_PRIV_KEY_INFO *p8inf; in PEM_read_bio_PrivateKey() local
116 p8inf = PKCS8_decrypt(p8, psbuf, klen); in PEM_read_bio_PrivateKey()
118 if(!p8inf) goto p8err; in PEM_read_bio_PrivateKey()
119 ret = EVP_PKCS82PKEY(p8inf); in PEM_read_bio_PrivateKey()
124 PKCS8_PRIV_KEY_INFO_free(p8inf); in PEM_read_bio_PrivateKey()
/external/boringssl/src/crypto/x509/
Dx_all.c411 PKCS8_PRIV_KEY_INFO **p8inf) in d2i_PKCS8_PRIV_KEY_INFO_fp() argument
414 d2i_PKCS8_PRIV_KEY_INFO,fp,p8inf); in d2i_PKCS8_PRIV_KEY_INFO_fp()
417 int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf) in i2d_PKCS8_PRIV_KEY_INFO_fp() argument
420 p8inf); in i2d_PKCS8_PRIV_KEY_INFO_fp()
425 PKCS8_PRIV_KEY_INFO *p8inf; in i2d_PKCS8PrivateKeyInfo_fp() local
427 p8inf = EVP_PKEY2PKCS8(key); in i2d_PKCS8PrivateKeyInfo_fp()
428 if(!p8inf) return 0; in i2d_PKCS8PrivateKeyInfo_fp()
429 ret = i2d_PKCS8_PRIV_KEY_INFO_fp(fp, p8inf); in i2d_PKCS8PrivateKeyInfo_fp()
430 PKCS8_PRIV_KEY_INFO_free(p8inf); in i2d_PKCS8PrivateKeyInfo_fp()
455 PKCS8_PRIV_KEY_INFO **p8inf) in d2i_PKCS8_PRIV_KEY_INFO_bio() argument
[all …]
/external/libchrome/crypto/
Drsa_private_key_openssl.cc88 ScopedPKCS8_PRIV_KEY_INFO p8inf( in CreateFromPrivateKeyInfo() local
90 if (!p8inf.get() || ptr != &input[0] + input.size()) in CreateFromPrivateKeyInfo()
94 result->key_ = EVP_PKCS82PKEY(p8inf.get()); in CreateFromPrivateKeyInfo()
/external/boringssl/src/include/openssl/
Dpkcs8.h93 PKCS8_PRIV_KEY_INFO *p8inf);
128 PKCS8_PRIV_KEY_INFO *p8inf);
Dx509.h665 PKCS8_PRIV_KEY_INFO **p8inf);
666 OPENSSL_EXPORT int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp,PKCS8_PRIV_KEY_INFO *p8inf);
699 PKCS8_PRIV_KEY_INFO **p8inf);
700 OPENSSL_EXPORT int i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp,PKCS8_PRIV_KEY_INFO *p8inf);
/external/boringssl/src/crypto/evp/
Devp_extra_test.cc737 ScopedPKCS8_PRIV_KEY_INFO p8inf( in TestEVP_PKCS82PKEY() local
739 if (!p8inf || derp != kExampleBadECKeyDER + sizeof(kExampleBadECKeyDER)) { in TestEVP_PKCS82PKEY()
744 ScopedEVP_PKEY pkey(EVP_PKCS82PKEY(p8inf.get())); in TestEVP_PKCS82PKEY()
Dinternal.h99 int (*priv_decode)(EVP_PKEY *pk, PKCS8_PRIV_KEY_INFO *p8inf);
/external/boringssl/src/crypto/pkcs8/
Dpkcs8.c536 int iterations, PKCS8_PRIV_KEY_INFO *p8inf) { in PKCS8_encrypt() argument
544 salt, salt_len, iterations, p8inf); in PKCS8_encrypt()
556 int iterations, PKCS8_PRIV_KEY_INFO *p8inf) { in PKCS8_encrypt_pbe() argument
580 pbe, ASN1_ITEM_rptr(PKCS8_PRIV_KEY_INFO), pass_raw, pass_raw_len, p8inf); in PKCS8_encrypt_pbe()