Documentation
¶
Index ¶
- func BaseCaseMultiply(a0, a1, b0, b1 uintq, g intq2) (uintq, uintq)
- func ByteDecode(b []byte, d int) [256]uint
- func ByteDecodeQ(b []byte) polynomial
- func ByteEncode(f [256]uint, d int) []byte
- func ByteEncodeQ(f polynomial) []byte
- func Compress(f polynomial, d int) [256]uint
- func Decaps_internal(dk, c []byte, k, eta1, eta2, du, dv int) []byte
- func Decompress(b [256]uint, d int) polynomial
- func Encaps_internal(ek, m []byte, k, eta1, eta2, du, dv int) ([]byte, []byte)
- func G(d []byte, k []byte) ([]byte, []byte)
- func H(s []byte) []byte
- func J(s, t []byte) []byte
- func KPKEDecrypt(dkPKE []byte, c []byte, k, du, dv int) []byte
- func KPKEEncrypt(ekPKE []byte, m, r []byte, k, eta1, eta2, du, dv int) []byte
- func KPKEKeyGen(d []byte, k, eta1 int) ([]byte, []byte)
- func KeyGen_internal(d, z []byte, k, eta1 int) ([]byte, []byte)
- func MultiplyNTTs(f_, g_ polynomial) polynomial
- func NTT(f polynomial) polynomial
- func NTTinv(f_ polynomial) polynomial
- func PRF(s []byte, b byte, eta int) []byte
- func SampleNTT(b []byte, jj, ii byte) polynomial
- func SamplePolyCBD(b []byte) polynomial
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseCaseMultiply ¶
func BaseCaseMultiply(a0, a1, b0, b1 uintq, g intq2) (uintq, uintq)
func ByteDecode ¶
func ByteDecodeQ ¶
func ByteDecodeQ(b []byte) polynomial
func ByteEncode ¶
func ByteEncodeQ ¶
func ByteEncodeQ(f polynomial) []byte
func Decaps_internal ¶
func Decompress ¶
func Encaps_internal ¶
func MultiplyNTTs ¶
func MultiplyNTTs(f_, g_ polynomial) polynomial
func SamplePolyCBD ¶
func SamplePolyCBD(b []byte) polynomial
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.