aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_mp.cpp
Commit message (Collapse)AuthorAgeFilesLines
* For odd moduli use a input-independent modular inverse algorithm.Jack Lloyd2016-02-201-0/+32
| | | | Also adds a (not const time) implementation of almost Montgomery reduction.
* Add constant time conditional swap, add, sub for bigint wordsJack Lloyd2016-02-171-0/+123
Not optimized and relies on asm support for const time word_add/word_sub instructions. Fix a bug introduced in 46e9a89 - unpoison needs to call the valgrind API with the pointer rather than the reference. Caused values not to be unpoisoned.