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:
authorAdam Langley <agl@google.com>2015-11-03 04:39:02 +0300
committerAdam Langley <agl@google.com>2015-11-03 04:58:12 +0300
commitefb42fbb607c11391a08d5787bcffd08b9a0c78f (patch)
tree005c8ac54a9d4e3fd7b2ff86227fd82c6aeed2fb /include/openssl/bn.h
parenteb8be01f0c0ac2fdc2d2038eaeaa9fc868bce3ef (diff)
Make BN_mod_exp_mont_consttime take a const context.
BN_mod_exp_mont_consttime does not modify its |BN_MONT_CTX| so that value should be const. Change-Id: Ie74e48eec8061899fd056fbd99dcca2a86b02cad Reviewed-on: https://boringssl-review.googlesource.com/6403 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/bn.h')
-rw-r--r--include/openssl/bn.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/openssl/bn.h b/include/openssl/bn.h
index 46673dc2..c9bdb1e4 100644
--- a/include/openssl/bn.h
+++ b/include/openssl/bn.h
@@ -791,7 +791,8 @@ OPENSSL_EXPORT int BN_mod_exp_mont(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
OPENSSL_EXPORT int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a,
const BIGNUM *p, const BIGNUM *m,
- BN_CTX *ctx, BN_MONT_CTX *in_mont);
+ BN_CTX *ctx,
+ const BN_MONT_CTX *mont);
OPENSSL_EXPORT int BN_mod_exp_mont_word(BIGNUM *r, BN_ULONG a, const BIGNUM *p,
const BIGNUM *m, BN_CTX *ctx,