Lines Matching defs:ec
23 #include <openssl/ec.h>
1871 struct crypto_ec *ec;
1886 ecdh->ec = crypto_ec_init(group);
1887 if (!ecdh->ec)
1890 ec_params = EC_KEY_new_by_curve_name(ecdh->ec->nid);
1940 int len = BN_num_bytes(ecdh->ec->prime);
1961 if (EC_POINT_get_affine_coordinates_GFp(ecdh->ec->group, pubkey,
1962 x, y, ecdh->ec->bnctx) != 1) {
2006 pub = EC_POINT_new(ecdh->ec->group);
2014 if (!EC_POINT_set_affine_coordinates_GFp(ecdh->ec->group, pub,
2016 ecdh->ec->bnctx)) {
2022 } else if (!EC_POINT_set_compressed_coordinates_GFp(ecdh->ec->group,
2024 ecdh->ec->bnctx)) {
2031 if (!EC_POINT_is_on_curve(ecdh->ec->group, pub, ecdh->ec->bnctx)) {
2037 eckey = EC_KEY_new_by_curve_name(ecdh->ec->nid);
2092 crypto_ec_deinit(ecdh->ec);