-/* $OpenBSD: ecdhtest.c,v 1.10 2018/07/17 17:06:49 tb Exp $ */
+/* $OpenBSD: ecdhtest.c,v 1.11 2021/04/20 17:21:27 tb Exp $ */
/* ====================================================================
* Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
*
if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) ==
NID_X9_62_prime_field) {
- if (!EC_POINT_get_affine_coordinates_GFp(group,
+ if (!EC_POINT_get_affine_coordinates(group,
EC_KEY_get0_public_key(a), x_a, y_a, ctx)) goto err;
}
#ifndef OPENSSL_NO_EC2M
else {
- if (!EC_POINT_get_affine_coordinates_GF2m(group,
+ if (!EC_POINT_get_affine_coordinates(group,
EC_KEY_get0_public_key(a), x_a, y_a, ctx)) goto err;
}
#endif
if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) ==
NID_X9_62_prime_field) {
- if (!EC_POINT_get_affine_coordinates_GFp(group,
+ if (!EC_POINT_get_affine_coordinates(group,
EC_KEY_get0_public_key(b), x_b, y_b, ctx)) goto err;
}
#ifndef OPENSSL_NO_EC2M
else {
- if (!EC_POINT_get_affine_coordinates_GF2m(group,
+ if (!EC_POINT_get_affine_coordinates(group,
EC_KEY_get0_public_key(b), x_b, y_b, ctx)) goto err;
}
#endif