Lines Matching refs:p8
25 EVP_PKEY *evp_pkcs82pkey_legacy(const PKCS8_PRIV_KEY_INFO *p8, OSSL_LIB_CTX *libctx, in evp_pkcs82pkey_legacy() argument
32 if (!PKCS8_pkey_get0(&algoid, NULL, NULL, NULL, p8)) in evp_pkcs82pkey_legacy()
48 if (!pkey->ameth->priv_decode_ex(pkey, p8, libctx, propq)) in evp_pkcs82pkey_legacy()
51 if (!pkey->ameth->priv_decode(pkey, p8)) { in evp_pkcs82pkey_legacy()
67 EVP_PKEY *EVP_PKCS82PKEY_ex(const PKCS8_PRIV_KEY_INFO *p8, OSSL_LIB_CTX *libctx, in EVP_PKCS82PKEY_ex() argument
80 if (p8 == NULL in EVP_PKCS82PKEY_ex()
81 || !PKCS8_pkey_get0(&algoid, NULL, NULL, NULL, p8) in EVP_PKCS82PKEY_ex()
85 if ((encoded_len = i2d_PKCS8_PRIV_KEY_INFO(p8, &encoded_data)) <= 0 in EVP_PKCS82PKEY_ex()
110 pkey = evp_pkcs82pkey_legacy(p8, libctx, propq); in EVP_PKCS82PKEY_ex()
117 EVP_PKEY *EVP_PKCS82PKEY(const PKCS8_PRIV_KEY_INFO *p8) in EVP_PKCS82PKEY() argument
119 return EVP_PKCS82PKEY_ex(p8, NULL, NULL); in EVP_PKCS82PKEY()
126 PKCS8_PRIV_KEY_INFO *p8 = NULL; in EVP_PKEY2PKCS8() local
147 p8 = d2i_PKCS8_PRIV_KEY_INFO(NULL, &pp, (long)derlen); in EVP_PKEY2PKCS8()
149 if (p8 == NULL) in EVP_PKEY2PKCS8()
152 p8 = PKCS8_PRIV_KEY_INFO_new(); in EVP_PKEY2PKCS8()
153 if (p8 == NULL) { in EVP_PKEY2PKCS8()
160 if (!pkey->ameth->priv_encode(p8, pkey)) { in EVP_PKEY2PKCS8()
175 PKCS8_PRIV_KEY_INFO_free(p8); in EVP_PKEY2PKCS8()
176 p8 = NULL; in EVP_PKEY2PKCS8()
179 return p8; in EVP_PKEY2PKCS8()