diff options
author | Adam Langley <agl@google.com> | 2015-11-03 04:39:02 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-11-03 04:58:12 +0300 |
commit | efb42fbb607c11391a08d5787bcffd08b9a0c78f (patch) | |
tree | 005c8ac54a9d4e3fd7b2ff86227fd82c6aeed2fb /include/openssl/bn.h | |
parent | eb8be01f0c0ac2fdc2d2038eaeaa9fc868bce3ef (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.h | 3 |
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, |