aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/math/numbertheory/monty_exp.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-02-25 13:24:25 -0500
committerJack Lloyd <[email protected]>2018-02-25 18:07:36 -0500
commit68e5aa78138e9e2de84aab58e1cdf0e7084fda87 (patch)
tree10b2308fd62eac2cfdd9d89af04470f7ac143324 /src/lib/math/numbertheory/monty_exp.h
parent8c3ce8fba6802b821ce1307e3ca10b06d82a04ce (diff)
Add Montgomery_Int type
Diffstat (limited to 'src/lib/math/numbertheory/monty_exp.h')
-rw-r--r--src/lib/math/numbertheory/monty_exp.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/math/numbertheory/monty_exp.h b/src/lib/math/numbertheory/monty_exp.h
index 65fc9ce4b..8c644d221 100644
--- a/src/lib/math/numbertheory/monty_exp.h
+++ b/src/lib/math/numbertheory/monty_exp.h
@@ -14,15 +14,16 @@ namespace Botan {
class BigInt;
class Modular_Reducer;
+class Montgomery_Params;
+
class Montgomery_Exponentation_State;
/*
* Precompute for calculating values g^x mod p
*/
std::shared_ptr<const Montgomery_Exponentation_State>
-monty_precompute(const BigInt& g,
- const BigInt& p,
- const Modular_Reducer& mod_p,
+monty_precompute(std::shared_ptr<const Montgomery_Params> params_p,
+ const BigInt& g,
size_t window_bits);
/*