diff options
Diffstat (limited to 'src/lib/math/numbertheory/monty_exp.h')
-rw-r--r-- | src/lib/math/numbertheory/monty_exp.h | 7 |
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 61da258cc..632d7f7d6 100644 --- a/src/lib/math/numbertheory/monty_exp.h +++ b/src/lib/math/numbertheory/monty_exp.h @@ -28,13 +28,14 @@ monty_precompute(std::shared_ptr<const Montgomery_Params> params_p, bool const_time = true); /* -* Return g^x mod p +* Return g^k mod p */ BigInt monty_execute(const Montgomery_Exponentation_State& precomputed_state, - const BigInt& k); + const BigInt& k, size_t max_k_bits); /* -* Return g^x mod p taking variable time +* Return g^k mod p taking variable time depending on k +* @warning only use this if k is public */ BigInt monty_execute_vartime(const Montgomery_Exponentation_State& precomputed_state, const BigInt& k); |