diff options
author | David Benjamin <davidben@chromium.org> | 2015-02-25 22:49:46 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-02-27 22:43:02 +0300 |
commit | 114ddebbf62601aaf6ed09bf87aec8b72402afcb (patch) | |
tree | 31837e17e8f1df932756c47daeeb0350bfb1baf6 /crypto/ec/internal.h | |
parent | 9a7233cda8d8aeeeb4795e2ba8e0dca5bbbb0cf0 (diff) |
Unexport EC_GROUP_copy.
EC_GROUP_copy is an rather unfriendly function; it doesn't work if the groups
have different[*] underlying EC_METHODs, but this notion is not exposed through
the API. I found no callers of EC_GROUP_copy in external code.
This leaves the precompute_mult functions as the remaining mutable API exposed
through EC_GROUP.
[*] Though, of the two EC_METHODs right now, simple.c is entirely unused.
Change-Id: Iabb52518005250fb970e12b3b0ea78b4f6eff4a0
Reviewed-on: https://boringssl-review.googlesource.com/3631
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/ec/internal.h')
-rw-r--r-- | crypto/ec/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ec/internal.h b/crypto/ec/internal.h index da116c4c..17f63ae2 100644 --- a/crypto/ec/internal.h +++ b/crypto/ec/internal.h @@ -250,6 +250,7 @@ struct ec_point_st { } /* EC_POINT */; EC_GROUP *ec_group_new(const EC_METHOD *meth); +int ec_group_copy(EC_GROUP *dest, const EC_GROUP *src); int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], |