Lines Matching refs:ecx

33     const ECX_KEY *ecxkey = pkey->pkey.ecx;  in ecx_pub_encode()
59 ECX_KEY *ecx; in ecx_pub_decode() local
64 ecx = ossl_ecx_key_op(palg, p, pklen, pkey->ameth->pkey_id, in ecx_pub_decode()
66 if (ecx != NULL) { in ecx_pub_decode()
68 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_pub_decode()
75 const ECX_KEY *akey = a->pkey.ecx; in ecx_pub_cmp()
76 const ECX_KEY *bkey = b->pkey.ecx; in ecx_pub_cmp()
88 ECX_KEY *ecx = ossl_ecx_key_from_pkcs8(p8, libctx, propq); in ecx_priv_decode_ex() local
90 if (ecx != NULL) { in ecx_priv_decode_ex()
92 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_priv_decode_ex()
100 const ECX_KEY *ecxkey = pkey->pkey.ecx; in ecx_priv_encode()
157 ossl_ecx_key_free(pkey->pkey.ecx); in ecx_free()
169 const ECX_KEY *ecxkey = pkey->pkey.ecx; in ecx_key_print()
220 ECX_KEY *ecx = ossl_ecx_key_op(NULL, arg2, arg1, pkey->ameth->pkey_id, in ecx_ctrl() local
223 if (ecx != NULL) { in ecx_ctrl()
224 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_ctrl()
230 if (pkey->pkey.ecx != NULL) { in ecx_ctrl()
233 *ppt = OPENSSL_memdup(pkey->pkey.ecx->pubkey, KEYLEN(pkey)); in ecx_ctrl()
263 ECX_KEY *ecx = NULL; in ecx_set_priv_key() local
268 ecx = ossl_ecx_key_op(NULL, priv, len, pkey->ameth->pkey_id, in ecx_set_priv_key()
271 if (ecx != NULL) { in ecx_set_priv_key()
272 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_set_priv_key()
281 ECX_KEY *ecx = NULL; in ecx_set_pub_key() local
286 ecx = ossl_ecx_key_op(NULL, pub, len, pkey->ameth->pkey_id, in ecx_set_pub_key()
289 if (ecx != NULL) { in ecx_set_pub_key()
290 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_set_pub_key()
299 const ECX_KEY *key = pkey->pkey.ecx; in ecx_get_priv_key()
320 const ECX_KEY *key = pkey->pkey.ecx; in ecx_get_pub_key()
350 const ECX_KEY *key = from->pkey.ecx; in ecx_pkey_export_to()
389 ECX_KEY *ecx = ossl_ecx_key_new(pctx->libctx, KEYNID2TYPE(keytype), 0, in ecx_generic_import_from() local
392 if (ecx == NULL) { in ecx_generic_import_from()
397 if (!ossl_ecx_key_fromdata(ecx, params, 1) in ecx_generic_import_from()
398 || !EVP_PKEY_assign(pkey, keytype, ecx)) { in ecx_generic_import_from()
399 ossl_ecx_key_free(ecx); in ecx_generic_import_from()
407 ECX_KEY *ecx = from->pkey.ecx, *dupkey = NULL; in ecx_pkey_copy() local
410 if (ecx != NULL) { in ecx_pkey_copy()
411 dupkey = ossl_ecx_key_dup(ecx, OSSL_KEYMGMT_SELECT_ALL); in ecx_pkey_copy()
713 ECX_KEY *ecx = ossl_ecx_key_op(NULL, NULL, 0, ctx->pmeth->pkey_id, in pkey_ecx_keygen() local
716 if (ecx != NULL) { in pkey_ecx_keygen()
717 EVP_PKEY_assign(pkey, ctx->pmeth->pkey_id, ecx); in pkey_ecx_keygen()