Versions in this module Expand all Collapse all v0 v0.1.0 May 5, 2026 Changes in this version + const CiphertextSize1024 + const CiphertextSize768 + const EncapsulationKeySize1024 + const EncapsulationKeySize768 + const SeedSize + const SharedKeySize + func TestingOnlyExpandedBytes1024(dk *DecapsulationKey1024) []byte + func TestingOnlyExpandedBytes768(dk *DecapsulationKey768) []byte + type DecapsulationKey1024 struct + func GenerateKey1024() (*DecapsulationKey1024, error) + func GenerateKeyInternal1024(d, z *[32]byte) *DecapsulationKey1024 + func NewDecapsulationKey1024(seed []byte) (*DecapsulationKey1024, error) + func TestingOnlyNewDecapsulationKey1024(b []byte) (*DecapsulationKey1024, error) + func (dk *DecapsulationKey1024) Bytes() []byte + func (dk *DecapsulationKey1024) Decapsulate(ciphertext []byte) (sharedKey []byte, err error) + func (dk *DecapsulationKey1024) EncapsulationKey() *EncapsulationKey1024 + func (dk *DecapsulationKey1024) Encapsulator() Encapsulator + type DecapsulationKey768 struct + func GenerateKey768() (*DecapsulationKey768, error) + func GenerateKeyInternal768(d, z *[32]byte) *DecapsulationKey768 + func NewDecapsulationKey768(seed []byte) (*DecapsulationKey768, error) + func TestingOnlyNewDecapsulationKey768(b []byte) (*DecapsulationKey768, error) + func (dk *DecapsulationKey768) Bytes() []byte + func (dk *DecapsulationKey768) Decapsulate(ciphertext []byte) (sharedKey []byte, err error) + func (dk *DecapsulationKey768) EncapsulationKey() *EncapsulationKey768 + func (dk *DecapsulationKey768) Encapsulator() Encapsulator + type Decapsulator interface + Decapsulate func(ciphertext []byte) (sharedKey []byte, err error) + Encapsulator func() Encapsulator + type EncapsulationKey1024 struct + func NewEncapsulationKey1024(encapsulationKey []byte) (*EncapsulationKey1024, error) + func (ek *EncapsulationKey1024) Bytes() []byte + func (ek *EncapsulationKey1024) Encapsulate() (sharedKey, ciphertext []byte) + func (ek *EncapsulationKey1024) EncapsulateInternal(m *[32]byte) (sharedKey, ciphertext []byte) + type EncapsulationKey768 struct + func NewEncapsulationKey768(encapsulationKey []byte) (*EncapsulationKey768, error) + func (ek *EncapsulationKey768) Bytes() []byte + func (ek *EncapsulationKey768) Encapsulate() (sharedKey, ciphertext []byte) + func (ek *EncapsulationKey768) EncapsulateInternal(m *[32]byte) (sharedKey, ciphertext []byte) + type Encapsulator interface + Bytes func() []byte + Encapsulate func() (sharedKey, ciphertext []byte)