8 #include <botan/reducer.h>
9 #include <botan/internal/mp_core.h>
37 if(x.
cmp(m_modulus,
false) < 0)
43 else if(x.
cmp(m_modulus_2,
false) < 0)
66 while(t2 >= m_modulus)
72 return (m_modulus - t2);
77 return (x % m_modulus);
int32_t cmp(const BigInt &n, bool check_signs=true) const
static BigInt power_of_2(size_t n)
BigInt reduce(const BigInt &x) const
BigInt square(const BigInt &x)
const size_t MP_WORD_BITS