Expand description
Multiplication between boxed integers in Montgomery form (i.e. Montgomery multiplication).
Some parts adapted from monty.rs in num-bigint:
https://github.com/rust-num/num-bigint/blob/2cea7f4/src/biguint/monty.rs
Originally (c) 2014 The Rust Project Developers, dual licensed Apache 2.0+MIT.
Structs§
- Boxed
Monty Multiplier - Montgomery multiplier with a pre-allocated internal buffer to avoid additional allocations.
Functions§
- montgomery_
mul 🔒 - Computes Montgomery multiplication of
xandyintoout, that isout = x * y * 2^(-n*W) mod massumingk = -1/m mod 2^W, whereWis the bit size of the limb, andn * Wis the full bit size of the integer.