element

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const One = Element(1)
View Source
const Zero = Element(0)

Variables

This section is empty.

Functions

func Log

func Log(x Element) int

Types

type Element

type Element uint8

Element is GF(2^8) performed modulo x^8 + x^4 + x^3 + x^2 + 1.

func Add

func Add(x, y Element) Element

Add returns x + y.

func AddMulExp

func AddMulExp(x Element, y, z int) Element

AddMulExp returns x + a^y * a^z

func Exp

func Exp(n int) Element

func Inv

func Inv(x Element) Element

func Mul

func Mul(x, y Element) Element

Mul returns x * y.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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