~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release 2.4.0.
[catacomb]
/
math
/
t
/
mpmont
diff --git
a/math/t/mpmont
b/math/t/mpmont
index
81fbe63
..
d653963
100644
(file)
--- a/
math/t/mpmont
+++ b/
math/t/mpmont
@@
-1,5
+1,12
@@
# Test vectors for Montgomery reduction
# Test vectors for Montgomery reduction
+mul {
+ 6277101735386680763835789423207666416083908700390324961279
+ 2455155546008943817740293915197451784769108058161191238065
+ 340282366920938463500268095579187314689
+ 5646741895976341600220572388698743135318229029826089708489;
+}
+
create {
340809809850981098423498794792349 # m
266454859 # -m^{-1} mod b
create {
340809809850981098423498794792349 # m
266454859 # -m^{-1} mod b
@@
-18,6
+25,11
@@
mul {
6456542564
10807149256;
6456542564
10807149256;
+ 4325987397987458979875737589783
+ 1
+ 4309747041023999857206910900081
+ 4309747041023999857206910900081;
+
6277101735386680763835789423207666416083908700390324961279
2455155546008943817740293915197451784769108058161191238065
340282366920938463500268095579187314689
6277101735386680763835789423207666416083908700390324961279
2455155546008943817740293915197451784769108058161191238065
340282366920938463500268095579187314689