Lines Matching refs:ecx
55 int ossl_ecx_key_fromdata(ECX_KEY *ecx, const OSSL_PARAM params[], in ossl_ecx_key_fromdata() argument
62 if (ecx == NULL) in ossl_ecx_key_fromdata()
75 (void **)&ecx->privkey, ecx->keylen, in ossl_ecx_key_fromdata()
78 if (privkeylen != ecx->keylen) { in ossl_ecx_key_fromdata()
84 OPENSSL_secure_clear_free(ecx->privkey, privkeylen); in ossl_ecx_key_fromdata()
85 ecx->privkey = NULL; in ossl_ecx_key_fromdata()
91 pubkey = ecx->pubkey; in ossl_ecx_key_fromdata()
95 sizeof(ecx->pubkey), &pubkeylen)) in ossl_ecx_key_fromdata()
98 if ((param_pub_key != NULL && pubkeylen != ecx->keylen)) in ossl_ecx_key_fromdata()
101 if (param_pub_key == NULL && !ossl_ecx_public_from_private(ecx)) in ossl_ecx_key_fromdata()
104 ecx->haspubkey = 1; in ossl_ecx_key_fromdata()
232 ECX_KEY *ecx = NULL; in ossl_ecx_key_from_pkcs8() local
254 ecx = ossl_ecx_key_op(palg, p, plen, EVP_PKEY_NONE, KEY_OP_PRIVATE, in ossl_ecx_key_from_pkcs8()
257 return ecx; in ossl_ecx_key_from_pkcs8()