Commit Graph

3 Commits

Author SHA1 Message Date
kr0
70d54af4f1 Use Lsh impl of BigInt.
Bitshift to the left instead of multiply by 2
since performs ffaster than mul.
2019-07-19 10:06:25 +02:00
kr0
bfbe547191 [WIP] Implement kalinski modular inverse and tests
Implemented Kalinski Modular inverse algorithm.
See: https://www.researchgate.net/publication/3387259_Improved_Montgomery_modular_inverse_algorithm

Also implemented test for big and small Bignums.

One test is giving results over the Montgomery Domain, so
a little bit of research has to be done.
2019-07-14 05:39:16 +02:00
arnaucube
11b4c8ed9f add Rust implementation, reorganize directories 2019-07-12 19:25:06 +02:00