From 40a8b17a328635c0189beb394f81ea4c9c727fed Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Wed, 14 Dec 2016 17:33:17 -0500 Subject: Add some additional ressol tests --- src/tests/data/bn/ressol.vec | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/tests/data') 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 -- cgit v1.2.3