Lines Matching defs:eckey
142 EC_KEY *eckey = NULL;
149 if (!(eckey = d2i_ECParameters(NULL, &pm, pmlen))) {
160 if ((eckey = EC_KEY_new()) == NULL) {
168 if (EC_KEY_set_group(eckey, group) == 0)
176 return eckey;
179 if (eckey)
180 EC_KEY_free(eckey);
189 EC_KEY *eckey = NULL;
196 eckey = eckey_type2param(ptype, pval);
198 if (!eckey) {
204 if (!o2i_ECPublicKey(&eckey, &p, pklen)) {
209 EVP_PKEY_assign_EC_KEY(pkey, eckey);
213 if (eckey)
214 EC_KEY_free(eckey);
237 EC_KEY *eckey = NULL;
244 eckey = eckey_type2param(ptype, pval);
246 if (!eckey)
250 if (!d2i_ECPrivateKey(&eckey, &p, pklen)) {
256 if (EC_KEY_get0_public_key(eckey) == NULL) {
264 group = EC_KEY_get0_group(eckey);
275 priv_key = EC_KEY_get0_private_key(eckey);
281 if (EC_KEY_set_public_key(eckey, pub_key) == 0) {
289 EVP_PKEY_assign_EC_KEY(pkey, eckey);
295 if (eckey)
296 EC_KEY_free(eckey);
504 EC_KEY *eckey;
505 if (!(eckey = d2i_ECParameters(NULL, pder, derlen))) {
509 EVP_PKEY_assign_EC_KEY(pkey, eckey);
850 EC_KEY *eckey = pkey->pkey.ec;
854 penclen = i2o_ECPublicKey(eckey, NULL);
861 penclen = i2o_ECPublicKey(eckey, &p);