Versions in this module Expand all Collapse all v1 v1.3.71 Apr 15, 2024 Changes in this version + const Fp12Size + const Fp2Size + const Fp4Size + const Fp6Size + const FpSize + const ScalarSize + const URootSize + func EasyExponentiation(g *Cyclo6, f *Fp12) + func FpOrder() []byte + func HardExponentiation(u *URoot, g *Cyclo6) + func ScalarOrder() []byte + type Cyclo6 Fp12 + func (z *Cyclo6) Frob(x *Cyclo6) + func (z *Cyclo6) Inv(x *Cyclo6) + func (z *Cyclo6) Mul(x, y *Cyclo6) + func (z *Cyclo6) PowToX(x *Cyclo6) + func (z *Cyclo6) Sqr(x *Cyclo6) + func (z Cyclo6) IsEqual(x *Cyclo6) int + func (z Cyclo6) IsIdentity() int + func (z Cyclo6) String() string + type Fp struct + func (z *Fp) Add(x, y *Fp) + func (z *Fp) CMov(x, y *Fp, b int) + func (z *Fp) ExpVarTime(x *Fp, n []byte) + func (z *Fp) Inv(x *Fp) + func (z *Fp) MarshalBinary() ([]byte, error) + func (z *Fp) Mul(x, y *Fp) + func (z *Fp) Neg() + func (z *Fp) Random(r io.Reader) error + func (z *Fp) SetBytes(data []byte) + func (z *Fp) SetOne() + func (z *Fp) SetString(s string) error + func (z *Fp) SetUint64(n uint64) + func (z *Fp) Sqr(x *Fp) + func (z *Fp) Sqrt(x *Fp) int + func (z *Fp) Sub(x, y *Fp) + func (z *Fp) UnmarshalBinary(b []byte) error + func (z Fp) IsEqual(x *Fp) int + func (z Fp) IsNegative() int + func (z Fp) IsZero() int + func (z Fp) Sgn0() int + func (z Fp) String() string + type Fp12 [2]Fp6 + func (z *Fp12) Add(x, y *Fp12) + func (z *Fp12) CMov(x, y *Fp12, b int) + func (z *Fp12) Cjg() + func (z *Fp12) Exp(x *Fp12, n []byte) + func (z *Fp12) Frob(x *Fp12) + func (z *Fp12) FromFp12Cubic(x *Fp12Cubic) + func (z *Fp12) Inv(x *Fp12) + func (z *Fp12) Mul(x, y *Fp12) + func (z *Fp12) MulBeta() + func (z *Fp12) Neg() + func (z *Fp12) SetOne() + func (z *Fp12) Sqr(x *Fp12) + func (z *Fp12) Sub(x, y *Fp12) + func (z *Fp12) UnmarshalBinary(b []byte) error + func (z Fp12) IsEqual(x *Fp12) int + func (z Fp12) IsZero() int + func (z Fp12) MarshalBinary() (b []byte, e error) + func (z Fp12) String() string + type Fp12Cubic [3]Fp4 + func (z *Fp12Cubic) Add(x *Fp12Cubic, y *Fp12Cubic) + func (z *Fp12Cubic) FromFp12(x *Fp12) + func (z *Fp12Cubic) Mul(x *Fp12Cubic, y *Fp12Cubic) + func (z *Fp12Cubic) MulLine(x *Fp12Cubic, y *LineValue) + func (z *Fp12Cubic) SetOne() + func (z *Fp12Cubic) Sqr(x *Fp12Cubic) + func (z Fp12Cubic) IsEqual(x *Fp12Cubic) int + func (z Fp12Cubic) String() string + type Fp2 [2]Fp + func (z *Fp2) Add(x, y *Fp2) + func (z *Fp2) CMov(x, y *Fp2, b int) + func (z *Fp2) Cjg() + func (z *Fp2) ExpVarTime(x *Fp2, n []byte) + func (z *Fp2) Frob(x *Fp2) + func (z *Fp2) Inv(x *Fp2) + func (z *Fp2) Mul(x, y *Fp2) + func (z *Fp2) MulBeta() + func (z *Fp2) Neg() + func (z *Fp2) SetOne() + func (z *Fp2) SetString(s0, s1 string) (err error) + func (z *Fp2) Sqr(x *Fp2) + func (z *Fp2) Sqrt(x *Fp2) int + func (z *Fp2) Sub(x, y *Fp2) + func (z *Fp2) UnmarshalBinary(b []byte) error + func (z Fp2) IsEqual(x *Fp2) int + func (z Fp2) IsNegative() int + func (z Fp2) IsZero() int + func (z Fp2) MarshalBinary() (b []byte, e error) + func (z Fp2) Sgn0() int + func (z Fp2) String() string + type Fp4 [2]Fp2 + func (z *Fp4) Add(x *Fp4, y *Fp4) + func (z *Fp4) Cjg() + func (z *Fp4) Inv(x *Fp4) + func (z *Fp4) IsEqual(x *Fp4) int + func (z *Fp4) IsZero() int + func (z *Fp4) Mul(x *Fp4, y *Fp4) + func (z *Fp4) Neg() + func (z *Fp4) SetOne() + func (z *Fp4) Sqr(x *Fp4) + func (z *Fp4) Sub(x *Fp4, y *Fp4) + func (z Fp4) String() string + type Fp6 [3]Fp2 + func (z *Fp6) Add(x, y *Fp6) + func (z *Fp6) CMov(x, y *Fp6, b int) + func (z *Fp6) Frob(x *Fp6) + func (z *Fp6) Inv(x *Fp6) + func (z *Fp6) Mul(x, y *Fp6) + func (z *Fp6) MulBeta() + func (z *Fp6) Neg() + func (z *Fp6) SetOne() + func (z *Fp6) Sqr(x *Fp6) + func (z *Fp6) Sub(x, y *Fp6) + func (z *Fp6) UnmarshalBinary(b []byte) error + func (z Fp6) IsEqual(x *Fp6) int + func (z Fp6) IsZero() int + func (z Fp6) MarshalBinary() (b []byte, e error) + func (z Fp6) String() string + type LineValue [3]Fp2 + func (z *LineValue) IsZero() int + func (z *LineValue) SetOne() + type Scalar struct + func (z *Scalar) Add(x, y *Scalar) + func (z *Scalar) Inv(x *Scalar) + func (z *Scalar) MarshalBinary() ([]byte, error) + func (z *Scalar) Mul(x, y *Scalar) + func (z *Scalar) Neg() + func (z *Scalar) Random(r io.Reader) error + func (z *Scalar) Set(x *Scalar) + func (z *Scalar) SetBytes(data []byte) + func (z *Scalar) SetOne() + func (z *Scalar) SetString(s string) error + func (z *Scalar) SetUint64(n uint64) + func (z *Scalar) Sqr(x *Scalar) + func (z *Scalar) Sub(x, y *Scalar) + func (z *Scalar) UnmarshalBinary(data []byte) error + func (z Scalar) IsEqual(x *Scalar) int + func (z Scalar) IsZero() int + func (z Scalar) String() string + type URoot Cyclo6 + func (z *URoot) Exp(x *URoot, n []byte) + func (z *URoot) Inv(x *URoot) + func (z *URoot) Mul(x, y *URoot) + func (z *URoot) SetIdentity() + func (z *URoot) Sqr(x *URoot) + func (z *URoot) UnmarshalBinary(b []byte) error + func (z URoot) IsEqual(x *URoot) int + func (z URoot) IsIdentity() int + func (z URoot) MarshalBinary() ([]byte, error) + func (z URoot) String() string