Lines Matching defs:eckey
288 EC_KEY *eckey = NULL, *wrong_eckey = NULL;
338 if ((eckey = EC_KEY_new()) == NULL)
343 if (EC_KEY_set_group(eckey, group) == 0)
346 degree = EC_GROUP_get_degree(EC_KEY_get0_group(eckey));
350 EC_KEY_free(eckey);
351 eckey = NULL;
356 if (!EC_KEY_generate_key(eckey))
379 if (!EC_KEY_check_key(eckey))
387 sig_len = ECDSA_size(eckey);
390 if (!ECDSA_sign(0, digest, 20, signature, &sig_len, eckey))
398 if (ECDSA_verify(0, digest, 20, signature, sig_len, eckey) != 1)
416 eckey) == 1)
425 eckey) == 1)
471 if (ECDSA_verify(0, digest, 20, signature, sig_len, eckey) == 1)
484 if (ECDSA_verify(0, digest, 20, signature, sig_len, eckey) != 1)
498 EC_KEY_free(eckey);
499 eckey = NULL;
510 if (eckey)
511 EC_KEY_free(eckey);