-/* $OpenBSD: dh.c,v 1.27 2021/02/04 20:38:26 tobhe Exp $ */
+/* $OpenBSD: dh.c,v 1.28 2021/05/13 14:01:35 tb Exp $ */
/*
* Copyright (c) 2010-2014 Reyk Floeter <reyk@openbsd.org>
if ((ecgroup = EC_KEY_get0_group(group->ec)) == NULL)
goto done;
- if (!EC_POINT_get_affine_coordinates_GFp(ecgroup,
- point, x, y, bnctx))
+ if (!EC_POINT_get_affine_coordinates(ecgroup, point, x, y, bnctx))
goto done;
xoff = xlen - BN_num_bytes(x);
if ((point = EC_POINT_new(ecgroup)) == NULL)
goto done;
- if (!EC_POINT_set_affine_coordinates_GFp(ecgroup,
- point, x, y, bnctx))
+ if (!EC_POINT_set_affine_coordinates(ecgroup, point, x, y, bnctx))
goto done;
ret = 0;