diff options
author | Jack Lloyd <[email protected]> | 2016-12-14 17:33:17 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-12-14 17:33:17 -0500 |
commit | 40a8b17a328635c0189beb394f81ea4c9c727fed (patch) | |
tree | c41fe3e850bf72cdb158ae469e87a5c457917296 | |
parent | e72a88b952779daadd781667333ae13b3de22fb4 (diff) |
Add some additional ressol tests
-rw-r--r-- | src/tests/data/bn/ressol.vec | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tests/data/bn/ressol.vec b/src/tests/data/bn/ressol.vec index fbbbceb4f..631a718dc 100644 --- a/src/tests/data/bn/ressol.vec +++ b/src/tests/data/bn/ressol.vec @@ -35,3 +35,23 @@ Output = -1 Input = 2 Modulus = 4369 Output = -1 + +Input = 1024 +Modulus = 0x40000000000000000000000000000000000000000000000000000000000c100000000000000ffff +Output = 32 + +Input = 1024 +Modulus = 174763 +Output = 174731 + +Input = 1025 +Modulus = 0x40000000000000000000000000000000000000000000000000000000000c100000000000000ffff +Output = 7195614950510915163755738138441999335431224576038191833055420996031360079131617522512565985187 + +Input = 16 +Modulus = 0x40000000000000000000000000000000000000000000000000000000000c100000000000000ffff +Output = 4 + +Input = 120846049 +Modulus = 0x40000000000000000000000000000000000000000000000000000000000c100000000000000ffff +Output = 0x40000000000000000000000000000000000000000000000000000000000c100000000000000d50e |