Indicates whether d is larger than the modulus. */
| 124 | |
| 125 | /** Indicates whether d is larger than the modulus. */ |
| 126 | bool Num3072::IsOverflow() const |
| 127 | { |
| 128 | if (this->limbs[0] <= std::numeric_limits<limb_t>::max() - MAX_PRIME_DIFF) return false; |
| 129 | for (int i = 1; i < LIMBS; ++i) { |
| 130 | if (this->limbs[i] != std::numeric_limits<limb_t>::max()) return false; |
| 131 | } |
| 132 | return true; |
| 133 | } |
| 134 | |
| 135 | void Num3072::FullReduce() |
| 136 | { |