summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ecdsa/ecs_ossl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ecdsa/ecs_ossl.c')
-rw-r--r--src/lib/libcrypto/ecdsa/ecs_ossl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/ecdsa/ecs_ossl.c b/src/lib/libcrypto/ecdsa/ecs_ossl.c
index 8a6685de58..aa97a3ad73 100644
--- a/src/lib/libcrypto/ecdsa/ecs_ossl.c
+++ b/src/lib/libcrypto/ecdsa/ecs_ossl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ecs_ossl.c,v 1.20 2019/06/04 18:15:27 tb Exp $ */ 1/* $OpenBSD: ecs_ossl.c,v 1.21 2021/04/20 17:16:38 tb Exp $ */
2/* 2/*
3 * Written by Nils Larsch for the OpenSSL project 3 * Written by Nils Larsch for the OpenSSL project
4 */ 4 */
@@ -207,7 +207,7 @@ ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
207 } 207 }
208 if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) == 208 if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) ==
209 NID_X9_62_prime_field) { 209 NID_X9_62_prime_field) {
210 if (!EC_POINT_get_affine_coordinates_GFp(group, point, 210 if (!EC_POINT_get_affine_coordinates(group, point,
211 X, NULL, ctx)) { 211 X, NULL, ctx)) {
212 ECDSAerror(ERR_R_EC_LIB); 212 ECDSAerror(ERR_R_EC_LIB);
213 goto err; 213 goto err;
@@ -215,7 +215,7 @@ ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp)
215 } 215 }
216#ifndef OPENSSL_NO_EC2M 216#ifndef OPENSSL_NO_EC2M
217 else { /* NID_X9_62_characteristic_two_field */ 217 else { /* NID_X9_62_characteristic_two_field */
218 if (!EC_POINT_get_affine_coordinates_GF2m(group, point, 218 if (!EC_POINT_get_affine_coordinates(group, point,
219 X, NULL, ctx)) { 219 X, NULL, ctx)) {
220 ECDSAerror(ERR_R_EC_LIB); 220 ECDSAerror(ERR_R_EC_LIB);
221 goto err; 221 goto err;
@@ -523,7 +523,7 @@ ecdsa_do_verify(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig,
523 } 523 }
524 if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) == 524 if (EC_METHOD_get_field_type(EC_GROUP_method_of(group)) ==
525 NID_X9_62_prime_field) { 525 NID_X9_62_prime_field) {
526 if (!EC_POINT_get_affine_coordinates_GFp(group, point, X, NULL, 526 if (!EC_POINT_get_affine_coordinates(group, point, X, NULL,
527 ctx)) { 527 ctx)) {
528 ECDSAerror(ERR_R_EC_LIB); 528 ECDSAerror(ERR_R_EC_LIB);
529 goto err; 529 goto err;
@@ -531,7 +531,7 @@ ecdsa_do_verify(const unsigned char *dgst, int dgst_len, const ECDSA_SIG *sig,
531 } 531 }
532#ifndef OPENSSL_NO_EC2M 532#ifndef OPENSSL_NO_EC2M
533 else { /* NID_X9_62_characteristic_two_field */ 533 else { /* NID_X9_62_characteristic_two_field */
534 if (!EC_POINT_get_affine_coordinates_GF2m(group, point, X, NULL, 534 if (!EC_POINT_get_affine_coordinates(group, point, X, NULL,
535 ctx)) { 535 ctx)) {
536 ECDSAerror(ERR_R_EC_LIB); 536 ECDSAerror(ERR_R_EC_LIB);
537 goto err; 537 goto err;