Lines Matching defs:eckey
141 EC_KEY *eckey = NULL;
149 if (!(eckey = d2i_ECParameters(NULL, &pm, pmlen)))
163 if ((eckey = EC_KEY_new()) == NULL)
172 if (EC_KEY_set_group(eckey, group) == 0)
182 return eckey;
185 if (eckey)
186 EC_KEY_free(eckey);
195 EC_KEY *eckey = NULL;
202 eckey = eckey_type2param(ptype, pval);
204 if (!eckey)
211 if (!o2i_ECPublicKey(&eckey, &p, pklen))
217 EVP_PKEY_assign_EC_KEY(pkey, eckey);
221 if (eckey)
222 EC_KEY_free(eckey);
245 EC_KEY *eckey = NULL;
252 eckey = eckey_type2param(ptype, pval);
254 if (!eckey)
258 if (!d2i_ECPrivateKey(&eckey, &p, pklen))
265 if (EC_KEY_get0_public_key(eckey) == NULL)
272 group = EC_KEY_get0_group(eckey);
285 priv_key = EC_KEY_get0_private_key(eckey);
292 if (EC_KEY_set_public_key(eckey, pub_key) == 0)
301 EVP_PKEY_assign_EC_KEY(pkey, eckey);
307 if (eckey)
308 EC_KEY_free(eckey);
528 EC_KEY *eckey;
529 if (!(eckey = d2i_ECParameters(NULL, pder, derlen)))
534 EVP_PKEY_assign_EC_KEY(pkey, eckey);