Documentation
¶
Index ¶
- Constants
- func BytesToElements(out []uint32, in []byte)
- func NegateVector(in []uint32) []uint32
- func RandElement() uint32
- func RandElementWithPRG(rnd io.Reader) uint32
- func RandVector(length int) []uint32
- func RandVectorWithPRG(length int, rnd io.Reader) []uint32
- func VectorToBytes(in interface{}) []byte
- type Element
Constants ¶
View Source
const ( ModP = uint32(2147483647) // 2^31 - 1 Bytes = 4 Bits = 31 Mask = 127 ConcurrentExecutions = 4 )
Variables ¶
This section is empty.
Functions ¶
func BytesToElements ¶
func NegateVector ¶
func RandElement ¶
func RandElement() uint32
func RandElementWithPRG ¶
func RandVector ¶
func VectorToBytes ¶
func VectorToBytes(in interface{}) []byte
VectorToBytes extracts bytes from a vector of field elements. Assume that only 3 bytes worth of data are embedded in each field toElement and therefore strips the initial zero from each field toElement.
Types ¶
Click to show internal directories.
Click to hide internal directories.