diff options
Diffstat (limited to 'src/lib/libcrypto/ec/ec2_smpl.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec2_smpl.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/ec/ec2_smpl.c b/src/lib/libcrypto/ec/ec2_smpl.c index 936cee4898..f99615a0d5 100644 --- a/src/lib/libcrypto/ec/ec2_smpl.c +++ b/src/lib/libcrypto/ec/ec2_smpl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec2_smpl.c,v 1.21 2018/11/05 20:18:21 tb Exp $ */ | 1 | /* $OpenBSD: ec2_smpl.c,v 1.22 2021/04/20 17:16:37 tb Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. | 3 | * Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED. |
4 | * | 4 | * |
@@ -483,7 +483,7 @@ ec_GF2m_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, | |||
483 | if (!BN_copy(y0, &a->Y)) | 483 | if (!BN_copy(y0, &a->Y)) |
484 | goto err; | 484 | goto err; |
485 | } else { | 485 | } else { |
486 | if (!EC_POINT_get_affine_coordinates_GF2m(group, a, x0, y0, ctx)) | 486 | if (!EC_POINT_get_affine_coordinates(group, a, x0, y0, ctx)) |
487 | goto err; | 487 | goto err; |
488 | } | 488 | } |
489 | if (b->Z_is_one) { | 489 | if (b->Z_is_one) { |
@@ -492,7 +492,7 @@ ec_GF2m_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, | |||
492 | if (!BN_copy(y1, &b->Y)) | 492 | if (!BN_copy(y1, &b->Y)) |
493 | goto err; | 493 | goto err; |
494 | } else { | 494 | } else { |
495 | if (!EC_POINT_get_affine_coordinates_GF2m(group, b, x1, y1, ctx)) | 495 | if (!EC_POINT_get_affine_coordinates(group, b, x1, y1, ctx)) |
496 | goto err; | 496 | goto err; |
497 | } | 497 | } |
498 | 498 | ||
@@ -541,7 +541,7 @@ ec_GF2m_simple_add(const EC_GROUP *group, EC_POINT *r, const EC_POINT *a, | |||
541 | if (!BN_GF2m_add(y2, y2, y1)) | 541 | if (!BN_GF2m_add(y2, y2, y1)) |
542 | goto err; | 542 | goto err; |
543 | 543 | ||
544 | if (!EC_POINT_set_affine_coordinates_GF2m(group, r, x2, y2, ctx)) | 544 | if (!EC_POINT_set_affine_coordinates(group, r, x2, y2, ctx)) |
545 | goto err; | 545 | goto err; |
546 | 546 | ||
547 | ret = 1; | 547 | ret = 1; |
@@ -684,9 +684,9 @@ ec_GF2m_simple_cmp(const EC_GROUP *group, const EC_POINT *a, | |||
684 | if ((bY = BN_CTX_get(ctx)) == NULL) | 684 | if ((bY = BN_CTX_get(ctx)) == NULL) |
685 | goto err; | 685 | goto err; |
686 | 686 | ||
687 | if (!EC_POINT_get_affine_coordinates_GF2m(group, a, aX, aY, ctx)) | 687 | if (!EC_POINT_get_affine_coordinates(group, a, aX, aY, ctx)) |
688 | goto err; | 688 | goto err; |
689 | if (!EC_POINT_get_affine_coordinates_GF2m(group, b, bX, bY, ctx)) | 689 | if (!EC_POINT_get_affine_coordinates(group, b, bX, bY, ctx)) |
690 | goto err; | 690 | goto err; |
691 | ret = ((BN_cmp(aX, bX) == 0) && BN_cmp(aY, bY) == 0) ? 0 : 1; | 691 | ret = ((BN_cmp(aX, bX) == 0) && BN_cmp(aY, bY) == 0) ? 0 : 1; |
692 | 692 | ||
@@ -720,7 +720,7 @@ ec_GF2m_simple_make_affine(const EC_GROUP * group, EC_POINT * point, BN_CTX * ct | |||
720 | if ((y = BN_CTX_get(ctx)) == NULL) | 720 | if ((y = BN_CTX_get(ctx)) == NULL) |
721 | goto err; | 721 | goto err; |
722 | 722 | ||
723 | if (!EC_POINT_get_affine_coordinates_GF2m(group, point, x, y, ctx)) | 723 | if (!EC_POINT_get_affine_coordinates(group, point, x, y, ctx)) |
724 | goto err; | 724 | goto err; |
725 | if (!BN_copy(&point->X, x)) | 725 | if (!BN_copy(&point->X, x)) |
726 | goto err; | 726 | goto err; |