rq

package
v0.0.0-...-9e0f3af Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(c []byte) *[761]int16

Decode unpacks an element of Rq packed by Encode.

func DecodeRounded

func DecodeRounded(c []byte) *[761]int16

DecodeRounded unpacks an element of Rq packed by EncodeRounded.

func Encode

func Encode(f *[761]int16) *[1218]byte

Encode packs an element of Rq into 1218 bytes.

func EncodeRounded

func EncodeRounded(f *[761]int16) *[1015]byte

EncodeRounded packs an element of Rq rounded by Round3 into 1015 bytes.

func Mult

func Mult(h, f *[761]int16, g *[761]int8)

Mult returns the product h of f and g in Rq.

func Reciprocal3

func Reciprocal3(r *[761]int16, s *[761]int8) int

Reciprocal produces the inverse r of a polynomial 3*s in Rq. If s is not invertible, Reciprocal returns -1, and 0 otherwise.

func Round3

func Round3(h, f *[761]int16)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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