Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Poly64 ¶
type Poly64 uint64
A Poly64 is a polynomial over GF(2) mod x^64.
func (Poly64) Div ¶
Div performs Euclidean division using p and p2 (if non-zero) and returns the resulting quotient and remainder. That is, it returns q and r such that q.Times(p2).Plus(r) == p and either r == 0 or floor(log2(r)) < floor(log2(p2)). It panics if p2 == 0.
func (Poly64) Minus ¶
Minus returns the difference of p and q as polynomials over GF(2), which is just the bitwise xor of the two.
Click to show internal directories.
Click to hide internal directories.