Versions in this module Expand all Collapse all v1 v1.4.5 Dec 5, 2023 v1.4.2 Dec 4, 2023 v1.4.1 Dec 4, 2023 v1.4.0 Dec 4, 2023 v1.3.9 Dec 4, 2023 v1.3.8 Dec 4, 2023 v1.3.7 Dec 4, 2023 Changes in this version + const CiphertextSize + const DU + const DV + const Eta1 + const K + const PlaintextSize + const PrivateKeySize + const PublicKeySize + const SeedSize + func NewKeyFromSeed(seed []byte) (*PublicKey, *PrivateKey) + func PolyDotHat(p *common.Poly, a, b *Vec) + type Mat [K]Vec + func (m *Mat) Derive(seed *[32]byte, transpose bool) + func (m *Mat) Transpose() + type PrivateKey struct + func (sk *PrivateKey) DecryptTo(pt, ct []byte) + func (sk *PrivateKey) Equal(other *PrivateKey) bool + func (sk *PrivateKey) Pack(buf []byte) + func (sk *PrivateKey) Unpack(buf []byte) + type PublicKey struct + func (pk *PublicKey) EncryptTo(ct, pt, seed []byte) + func (pk *PublicKey) Pack(buf []byte) + func (pk *PublicKey) Unpack(buf []byte) + type Vec [K]common.Poly + func (v *Vec) Add(a, b *Vec) + func (v *Vec) BarrettReduce() + func (v *Vec) CompressTo(m []byte, d int) + func (v *Vec) Decompress(m []byte, d int) + func (v *Vec) DeriveNoise(seed []byte, nonce uint8, eta int) + func (v *Vec) InvNTT() + func (v *Vec) NTT() + func (v *Vec) Normalize() + func (v *Vec) Pack(buf []byte) + func (v *Vec) Unpack(buf []byte)