diff options
author | David Benjamin <davidben@google.com> | 2017-11-20 13:30:50 -0500 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2017-11-20 18:32:44 +0000 |
commit | 6d218d6d7a0f6773955aac9f03d94c6f650bce91 (patch) | |
tree | 7ee8a9e782d012ed8ba3f5fb751a58527d89038e | |
parent | 0a5f00673656b1f8714f5ef275816e23fdf927f1 (diff) | |
download | boringssl-6d218d6d7a0f6773955aac9f03d94c6f650bce91.zip boringssl-6d218d6d7a0f6773955aac9f03d94c6f650bce91.tar.gz boringssl-6d218d6d7a0f6773955aac9f03d94c6f650bce91.tar.bz2 |
Remove unused function.
Change-Id: Id12ab478b6ba441fb1b6f4c2f9479384fc3fbdb6
Reviewed-on: https://boringssl-review.googlesource.com/23144
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: Adam Langley <agl@google.com>
-rw-r--r-- | crypto/fipsmodule/ec/internal.h | 4 | ||||
-rw-r--r-- | crypto/fipsmodule/ec/simple.c | 43 |
2 files changed, 0 insertions, 47 deletions
diff --git a/crypto/fipsmodule/ec/internal.h b/crypto/fipsmodule/ec/internal.h index 22c8e45..8a78497 100644 --- a/crypto/fipsmodule/ec/internal.h +++ b/crypto/fipsmodule/ec/internal.h @@ -182,10 +182,6 @@ int ec_GFp_simple_set_Jprojective_coordinates_GFp(const EC_GROUP *, EC_POINT *, const BIGNUM *x, const BIGNUM *y, const BIGNUM *z, BN_CTX *); -int ec_GFp_simple_get_Jprojective_coordinates_GFp(const EC_GROUP *, - const EC_POINT *, BIGNUM *x, - BIGNUM *y, BIGNUM *z, - BN_CTX *); int ec_GFp_simple_point_set_affine_coordinates(const EC_GROUP *, EC_POINT *, const BIGNUM *x, const BIGNUM *y, BN_CTX *); diff --git a/crypto/fipsmodule/ec/simple.c b/crypto/fipsmodule/ec/simple.c index f7faa45..bc39525 100644 --- a/crypto/fipsmodule/ec/simple.c +++ b/crypto/fipsmodule/ec/simple.c @@ -295,49 +295,6 @@ err: return ret; } -int ec_GFp_simple_get_Jprojective_coordinates_GFp(const EC_GROUP *group, - const EC_POINT *point, - BIGNUM *x, BIGNUM *y, - BIGNUM *z, BN_CTX *ctx) { - BN_CTX *new_ctx = NULL; - int ret = 0; - - if (group->meth->field_decode != 0) { - if (ctx == NULL) { - ctx = new_ctx = BN_CTX_new(); - if (ctx == NULL) { - return 0; - } - } - - if (x != NULL && !group->meth->field_decode(group, x, &point->X, ctx)) { - goto err; - } - if (y != NULL && !group->meth->field_decode(group, y, &point->Y, ctx)) { - goto err; - } - if (z != NULL && !group->meth->field_decode(group, z, &point->Z, ctx)) { - goto err; - } - } else { - if (x != NULL && !BN_copy(x, &point->X)) { - goto err; - } - if (y != NULL && !BN_copy(y, &point->Y)) { - goto err; - } - if (z != NULL && !BN_copy(z, &point->Z)) { - goto err; - } - } - - ret = 1; - -err: - BN_CTX_free(new_ctx); - return ret; -} - int ec_GFp_simple_point_set_affine_coordinates(const EC_GROUP *group, EC_POINT *point, const BIGNUM *x, const BIGNUM *y, BN_CTX *ctx) { |