From d1f8a43d862fd0e32bcc7740b82b443b83b38a7e Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 13 May 2021 14:01:35 +0000 Subject: [PATCH] Use field independent version of {get,set}_affine_coordinates. ok tobhe --- sbin/iked/dh.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sbin/iked/dh.c b/sbin/iked/dh.c index 577f7371cce..379e2221011 100644 --- a/sbin/iked/dh.c +++ b/sbin/iked/dh.c @@ -1,4 +1,4 @@ -/* $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 @@ -608,8 +608,7 @@ ec_point2raw(struct dh_group *group, const EC_POINT *point, 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); @@ -669,8 +668,7 @@ ec_raw2point(struct dh_group *group, uint8_t *buf, size_t len) 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; -- 2.20.1