modulus must be odd
| 3792 | |
| 3793 | // modulus must be odd |
| 3794 | MontgomeryRepresentation::MontgomeryRepresentation(const Integer &m) |
| 3795 | : ModularArithmetic(m), |
| 3796 | u((word)0, modulus.reg_.size()), |
| 3797 | workspace(5*modulus.reg_.size()) |
| 3798 | { |
| 3799 | RecursiveInverseModPower2(u.reg_.get_buffer(), workspace.get_buffer(), |
| 3800 | modulus.reg_.get_buffer(), modulus.reg_.size()); |
| 3801 | } |
| 3802 | |
| 3803 | const Integer& MontgomeryRepresentation::Multiply(const Integer &a, |
| 3804 | const Integer &b) const |
nothing calls this directly
no test coverage detected