| 1825 | } |
| 1826 | |
| 1827 | void PositiveMultiply(Integer &product, const Integer &a, const Integer &b) |
| 1828 | { |
| 1829 | unsigned aSize = RoundupSize(a.WordCount()); |
| 1830 | unsigned bSize = RoundupSize(b.WordCount()); |
| 1831 | |
| 1832 | product.reg.CleanNew(RoundupSize(aSize+bSize)); |
| 1833 | product.sign = Integer::POSITIVE; |
| 1834 | |
| 1835 | SecWordBlock workspace(aSize + bSize); |
| 1836 | AsymmetricMultiply(product.reg, workspace, a.reg, aSize, b.reg, bSize); |
| 1837 | } |
| 1838 | |
| 1839 | void Multiply(Integer &product, const Integer &a, const Integer &b) |
| 1840 | { |
no test coverage detected