From 0f8d7dcb05b52424231fb650f1acf9e5bb5430ac Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 9 Dec 2018 08:18:03 -0500 Subject: Fix typo --- src/lib/math/numbertheory/monty_exp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/math/numbertheory/monty_exp.cpp b/src/lib/math/numbertheory/monty_exp.cpp index cc415815d..62ba8fcc5 100644 --- a/src/lib/math/numbertheory/monty_exp.cpp +++ b/src/lib/math/numbertheory/monty_exp.cpp @@ -41,7 +41,7 @@ Montgomery_Exponentation_State::Montgomery_Exponentation_State(std::shared_ptrp(), "Montygomery base too big"); + BOTAN_ARG_CHECK(g < m_params->p(), "Montgomery base too big"); if(m_window_bits < 1 || m_window_bits > 12) // really even 8 is too large ... throw Invalid_Argument("Invalid window bits for Montgomery exponentiation"); -- cgit v1.2.3