Documentation
¶
Index ¶
- func Crt(a *big.Int, pa *big.Int, b *big.Int, pb *big.Int) *big.Int
- func GetHashNumber(a *big.Int, b *big.Int, index int, bitlen uint) *big.Int
- func HashCommit(values []*big.Int) *big.Int
- func LegendreSymbol(a, p *big.Int) int
- func ModSqrt(a *big.Int, factors []*big.Int) (*big.Int, bool)
- func PrimeSqrt(a *big.Int, pa *big.Int) (*big.Int, bool)
- func RandomBigInt(limit *big.Int) *big.Int
- type CPRNG
- type FastMod
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LegendreSymbol ¶
legendreSymbol calculates the Legendre symbol (a/p).
func ModSqrt ¶
Calculate Sqrt modulo a number with given prime factors. Also allows 4 as a factor All factors should be relatively prime to each other!