Documentation
¶
Overview ¶
Package field provides modular operations over very high integers.
Index ¶
- func String2Int(s string) big.Int
- type Field
- func (f Field) Add(res, x, y *big.Int)
- func (f Field) ByteLen() int
- func (f Field) Exponent(res, x, n *big.Int) *big.Int
- func (f Field) Inv(res, x *big.Int)
- func (f Field) IsEqual(f2 *Field) bool
- func (f Field) IsZero(e *big.Int) bool
- func (f Field) Mod(x *big.Int) *big.Int
- func (f Field) Mul(res, x, y *big.Int)
- func (f Field) Order() *big.Int
- func (f Field) PMinusOne() *big.Int
- func (f Field) Random(res *big.Int) *big.Int
- func (f Field) Sub(res, x, y *big.Int) *big.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func String2Int ¶
String2Int returns a big.Int representation of the integer s.
Types ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field represents a Galois Field.
Click to show internal directories.
Click to hide internal directories.