diff options
author | Jack Lloyd <[email protected]> | 2016-02-17 22:59:14 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-02-20 12:33:11 -0500 |
commit | 99f2c04783b0a33d606531b73b1b3d0d1f52daa3 (patch) | |
tree | 7dea16b31742da548d2ea46f960149e887b295d3 /src/tests/data/bn | |
parent | b244336a8ee17e2aadd4c239c2467e1510f3dbc5 (diff) |
Add tests and timings for inverse_mod
Diffstat (limited to 'src/tests/data/bn')
-rw-r--r-- | src/tests/data/bn/invmod.vec | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/data/bn/invmod.vec b/src/tests/data/bn/invmod.vec new file mode 100644 index 000000000..f97049583 --- /dev/null +++ b/src/tests/data/bn/invmod.vec @@ -0,0 +1,21 @@ + +Input = 10 +Modulus = 37 +Output = 26 + +Input = 5 +Modulus = 0x7fffffffffffffffffffffffffffffff +Output = 0x33333333333333333333333333333333 + +Input = 333 +Modulus = 0x7fffffffffffffffffffffffffffffff +Output = 0x17d4f2ee517d4f2ee517d4f2ee517d4f + +Input = 0x435b21e35ccd62dbdbafa1368cf742f0 +Modulus = 0x7fffffffffffffffffffffffffffffff +Output = 0x604ddb74e5a55e559a7320e45b06eaf6 + +Input = 2 +Modulus = 0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +Output = 0x10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 + |