Documentation
¶
Overview ¶
Copyright 2018 (c) NSPCC
Package gf127 implements the GF(2^127) arithmetic modulo reduction polynomial x^127 + x^63 + 1 . This is rather straight-forward re-implementation of C library available here https://github.com/srijs/hwsl2-core . Interfaces are highly influenced by math/big .
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GF127 ¶
type GF127 [2]uint64
GF127 represents element of GF(2^127)
func New ¶
New constructs new element of GF(2^127) as hi*x^64 + lo. It is assumed that hi has zero MSB.
func (*GF127) MarshalBinary ¶
MarshalBinary implements encoding.BinaryMarshaler.
func (*GF127) UnmarshalBinary ¶
UnmarshalBinary implements encoding.BinaryUnmarshaler.
Click to show internal directories.
Click to hide internal directories.