Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@briansmith.org>2015-11-12 11:14:08 +0300
committerAdam Langley <agl@google.com>2015-11-19 03:27:39 +0300
commit9b2629760800ce98e7b26eb06ade9a3c9f286bdb (patch)
tree00885b2d572eb337b44fc46ea530bb35a7dd2e70 /include/openssl/ec_key.h
parent5058d7994805fe0b80e13728715b508af9ea6066 (diff)
Make |EC_GROUP_precompute_mult|/|EC_KEY_precompute_mult| no-ops.
This moves us closer to having |EC_GROUP| and |EC_KEY| being immutable. The functions are left as no-ops for backward compatibility. Change-Id: Ie23921ab0364f0771c03aede37b064804c9f69e0 Reviewed-on: https://boringssl-review.googlesource.com/6485 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/ec_key.h')
-rw-r--r--include/openssl/ec_key.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/include/openssl/ec_key.h b/include/openssl/ec_key.h
index 1cd4e6e6..c341d0b1 100644
--- a/include/openssl/ec_key.h
+++ b/include/openssl/ec_key.h
@@ -154,12 +154,6 @@ OPENSSL_EXPORT point_conversion_form_t EC_KEY_get_conv_form(const EC_KEY *key);
OPENSSL_EXPORT void EC_KEY_set_conv_form(EC_KEY *key,
point_conversion_form_t cform);
-/* EC_KEY_precompute_mult precomputes multiplies of the generator of the
- * underlying group in order to speed up operations that calculate generator
- * multiples. If |ctx| is not NULL, it may be used. It returns one on success
- * and zero otherwise. */
-OPENSSL_EXPORT int EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx);
-
/* EC_KEY_check_key performs several checks on |key| (possibly including an
* expensive check that the public key is in the primary subgroup). It returns
* one if all checks pass and zero otherwise. If it returns zero then detail
@@ -275,6 +269,9 @@ struct ecdsa_method_st {
/* Deprecated functions. */
+/* EC_KEY_precompute_mult does nothing and returns 1. */
+OPENSSL_EXPORT int EC_KEY_precompute_mult(EC_KEY *key, BN_CTX *ctx);
+
/* EC_KEY_set_asn1_flag does nothing. */
OPENSSL_EXPORT void EC_KEY_set_asn1_flag(EC_KEY *key, int flag);