X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/0e70bd46b0d4f50d5ec23e23e646d58f5ba0b23d..863b38d1b9406e9d38628d34b04f3f9fcd879e1f:/math/t/mpmont?ds=sidebyside diff --git a/math/t/mpmont b/math/t/mpmont index 81fbe634..d6539636 100644 --- a/math/t/mpmont +++ b/math/t/mpmont @@ -1,5 +1,12 @@ # Test vectors for Montgomery reduction +mul { + 6277101735386680763835789423207666416083908700390324961279 + 2455155546008943817740293915197451784769108058161191238065 + 340282366920938463500268095579187314689 + 5646741895976341600220572388698743135318229029826089708489; +} + create { 340809809850981098423498794792349 # m 266454859 # -m^{-1} mod b @@ -18,6 +25,11 @@ mul { 6456542564 10807149256; + 4325987397987458979875737589783 + 1 + 4309747041023999857206910900081 + 4309747041023999857206910900081; + 6277101735386680763835789423207666416083908700390324961279 2455155546008943817740293915197451784769108058161191238065 340282366920938463500268095579187314689