diff options
author | Adam Langley <agl@google.com> | 2015-11-02 17:39:02 -0800 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2017-07-17 23:32:53 +0200 |
commit | 75f560e5deb11b3a8e3f0f56364c7941e937a687 (patch) | |
tree | 3f388d462190bb1a8c4c191b9bf02c03cf5d27d2 /src/include/openssl | |
parent | 5f52622aa9140f75927fb1c94547c08c5212899e (diff) | |
download | external_boringssl-75f560e5deb11b3a8e3f0f56364c7941e937a687.tar.gz external_boringssl-75f560e5deb11b3a8e3f0f56364c7941e937a687.tar.bz2 external_boringssl-75f560e5deb11b3a8e3f0f56364c7941e937a687.zip |
DO NOT MERGE
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.
Cherry-picked to make the next diff apply better.
(cherry picked from commit efb42fbb607c11391a08d5787bcffd08b9a0c78f)
Bug: 33752052
Change-Id: I6222a5a9eba3e34bf95957312af048b30da14a6b
(cherry picked from commit abaaae9e89a4360c8330e2ffb67df1cd476f5e1a)
Diffstat (limited to 'src/include/openssl')
-rw-r--r-- | src/include/openssl/bn.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/openssl/bn.h b/src/include/openssl/bn.h index ec1c8ff..297ce5a 100644 --- a/src/include/openssl/bn.h +++ b/src/include/openssl/bn.h @@ -771,7 +771,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, |