avx2

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineTo

func CombineTo(a *GF127, b *GF127, c *GF127x2)

CombineTo 2 elements of GF(2^127) to the respective components of pair.

func Mul10x2

func Mul10x2(a, b *GF127x2)

Mul10x2 sets (b1, b2) to (a1*x, a2*x)

func Mul11x2

func Mul11x2(a, b *GF127x2)

Mul10x2 sets (b1, b2) to (a1*(x+1), a2*(x+1))

func Split

func Split(a *GF127x2) (*GF127, *GF127)

Split returns 2 components of pair without additional allocations.

Types

type GF127

type GF127 = gf127.GF127

GF127 is an alias for a main type.

type GF127x2

type GF127x2 [2]GF127

GF127x2 represents a pair of elements of GF(2^127) stored together.

func (*GF127x2) ByteArray

func (a *GF127x2) ByteArray() (buf []byte)

ByteArray represents element of GF(2^127) as byte array of length 32.

func (*GF127x2) Equal

func (a *GF127x2) Equal(b *GF127x2) bool

Equal checks if both elements of GF(2^127) pair are equal.

func (*GF127x2) String

func (a *GF127x2) String() string

String returns hex-encoded representation, starting with MSB. Elements of pair are separated by comma.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL