Lines Matching defs:eckey
131 EC_KEY *eckey = NULL;
138 eckey = d2i_ECParameters(NULL, &pm, pmlen);
139 if (eckey == NULL) {
149 eckey = EC_KEY_new();
150 if (eckey == NULL) {
158 if (EC_KEY_set_group(eckey, group) == 0) {
167 return eckey;
170 if (eckey) {
171 EC_KEY_free(eckey);
180 EC_KEY *eckey = NULL;
188 eckey = eckey_type2param(ptype, pval);
189 if (!eckey) {
195 if (!o2i_ECPublicKey(&eckey, &p, pklen)) {
200 EVP_PKEY_assign_EC_KEY(pkey, eckey);
204 if (eckey)
205 EC_KEY_free(eckey);
228 EC_KEY *eckey = NULL;
236 eckey = eckey_type2param(ptype, pval);
238 if (!eckey)
242 if (!d2i_ECPrivateKey(&eckey, &p, pklen)) {
248 if (EC_KEY_get0_public_key(eckey) == NULL) {
254 group = EC_KEY_get0_group(eckey);
265 priv_key = EC_KEY_get0_private_key(eckey);
271 if (EC_KEY_set_public_key(eckey, pub_key) == 0) {
279 EVP_PKEY_assign_EC_KEY(pkey, eckey);
285 if (eckey)
286 EC_KEY_free(eckey);
493 EC_KEY *eckey;
494 if (!(eckey = d2i_ECParameters(NULL, pder, derlen))) {
498 EVP_PKEY_assign_EC_KEY(pkey, eckey);