Documentation ¶
Index ¶
- Constants
- func Add(out *Element, x *Element, y *Element)
- func AddMod(out *Element, x *Element, y *Element, mod *Element)
- func LT(a_hi, a_lo, b_hi, b_lo uint64) bool
- func MulMod(out *Element, x *Element, y *Element, mod *Element, inv uint64)
- func Sub(out *Element, x *Element, y *Element) uint64
- func SubMod(out *Element, x *Element, y *Element, mod *Element)
- type Element
Constants ¶
View Source
const NUM_LIMBS = 6
Variables ¶
This section is empty.
Functions ¶
func MulMod ¶
Montgomery Modular Multiplication: algorithm 14.36, Handbook of Applied Cryptography, http://cacr.uwaterloo.ca/hac/about/chap14.pdf
Types ¶
Click to show internal directories.
Click to hide internal directories.