Lines Matching refs:p8inf
128 PKCS8_PRIV_KEY_INFO *p8inf; in do_pk8pkey() local
132 if ((p8inf = EVP_PKEY2PKCS8(x)) == NULL) { in do_pk8pkey()
146 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf); in do_pk8pkey()
158 ret = i2d_PKCS8_PRIV_KEY_INFO_bio(bp, p8inf); in do_pk8pkey()
160 ret = PEM_write_bio_PKCS8_PRIV_KEY_INFO(bp, p8inf); in do_pk8pkey()
163 PKCS8_PRIV_KEY_INFO_free(p8inf); in do_pk8pkey()
172 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in d2i_PKCS8PrivateKey_bio() local
190 p8inf = PKCS8_decrypt(p8, psbuf, klen); in d2i_PKCS8PrivateKey_bio()
193 if (p8inf == NULL) in d2i_PKCS8PrivateKey_bio()
195 ret = EVP_PKCS82PKEY(p8inf); in d2i_PKCS8PrivateKey_bio()
196 PKCS8_PRIV_KEY_INFO_free(p8inf); in d2i_PKCS8PrivateKey_bio()