Lines Matching refs:p8info
1358 PKCS8_PRIV_KEY_INFO *p8info = NULL; in key_to_p8info() local
1360 if ((p8info = PKCS8_PRIV_KEY_INFO_new()) == NULL in key_to_p8info()
1362 || !PKCS8_pkey_set0(p8info, OBJ_nid2obj(key_nid), 0, in key_to_p8info()
1366 PKCS8_PRIV_KEY_INFO_free(p8info); in key_to_p8info()
1368 p8info = NULL; in key_to_p8info()
1371 return p8info; in key_to_p8info()
1374 static X509_SIG *p8info_to_encp8(PKCS8_PRIV_KEY_INFO *p8info, in p8info_to_encp8() argument
1390 p8 = PKCS8_encrypt_ex(-1, ctx->cipher, kstr, klen, NULL, 0, 0, p8info, libctx, NULL); in p8info_to_encp8()
1399 PKCS8_PRIV_KEY_INFO *p8info = in key_to_encp8() local
1403 if (p8info == NULL) { in key_to_encp8()
1406 p8 = p8info_to_encp8(p8info, ctx); in key_to_encp8()
1407 PKCS8_PRIV_KEY_INFO_free(p8info); in key_to_encp8()
1521 PKCS8_PRIV_KEY_INFO *p8info; in key_to_pki_der_priv_bio() local
1531 p8info = key_to_p8info(key, key_nid, str, strtype, k2d); in key_to_pki_der_priv_bio()
1533 if (p8info != NULL) in key_to_pki_der_priv_bio()
1534 ret = i2d_PKCS8_PRIV_KEY_INFO_bio(out, p8info); in key_to_pki_der_priv_bio()
1538 PKCS8_PRIV_KEY_INFO_free(p8info); in key_to_pki_der_priv_bio()
1553 PKCS8_PRIV_KEY_INFO *p8info; in key_to_pki_pem_priv_bio() local
1563 p8info = key_to_p8info(key, key_nid, str, strtype, k2d); in key_to_pki_pem_priv_bio()
1565 if (p8info != NULL) in key_to_pki_pem_priv_bio()
1566 ret = PEM_write_bio_PKCS8_PRIV_KEY_INFO(out, p8info); in key_to_pki_pem_priv_bio()
1570 PKCS8_PRIV_KEY_INFO_free(p8info); in key_to_pki_pem_priv_bio()