Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bit1Counter ¶
func Bit1Counter(input Word) uint64
func DoubleExp ¶
DoubleExp sets z1 = x**y1 mod |m|, z2 = x**y2 mod |m| ... (i.e. the sign of m is ignored), and returns z1, z2. If m == nil or m == 0, z = x**y unless y <= 0 then z = 1. If m != 0, y < 0, and x and m are not relatively prime, z is unchanged and nil is returned.
DoubleExp is not a cryptographically constant-time operation.
func FourFoldExp ¶
func FourFoldExp(x, m *Int, y []*Int) []*Int
FourFoldExp sets z1 = x**y1 mod |m|, z2 = x**y2 mod |m| ... (i.e. the sign of m is ignored), and returns z1, z2... In construction, many panic conditions. Use at your own risk!
FourFoldExp is not a cryptographically constant-time operation.
func FourFoldExpWithPreComputeTableParallel ¶
func FourFoldExpWithPreComputeTableParallel(x, m *Int, y []*Int, pretable *PreTable) []*Int
FourFoldExp sets z1 = x**y1 mod |m|, z2 = x**y2 mod |m| ... (i.e. the sign of m is ignored), and returns z1, z2... In construction, many panic conditions. Use at your own risk! Use at most 4 threads for now. FourFoldExp is not a cryptographically constant-time operation.
func StatforInt ¶
func StatforInt(input nat)