Versions in this module Expand all Collapse all v1 v1.5.0 Oct 10, 2024 v1.4.0 Aug 20, 2024 Changes in this version + const CiphertextSize + const EncapsulationSeedSize + const KeySeedSize + const PrivateKeySize + const PublicKeySize + const SharedKeySize + func GenerateKeyPair(rand io.Reader) (*PublicKey, *PrivateKey, error) + func NewKeyFromSeed(seed []byte) (*PublicKey, *PrivateKey) + func Scheme() kem.Scheme + type PrivateKey struct + func (sk *PrivateKey) DecapsulateTo(ss, ct []byte) + func (sk *PrivateKey) Equal(other kem.PrivateKey) bool + func (sk *PrivateKey) MarshalBinary() ([]byte, error) + func (sk *PrivateKey) Pack(buf []byte) + func (sk *PrivateKey) Public() kem.PublicKey + func (sk *PrivateKey) Scheme() kem.Scheme + func (sk *PrivateKey) Unpack(buf []byte) error + type PublicKey struct + func (pk *PublicKey) EncapsulateTo(ct, ss []byte, seed []byte) + func (pk *PublicKey) Equal(other kem.PublicKey) bool + func (pk *PublicKey) MarshalBinary() ([]byte, error) + func (pk *PublicKey) Pack(buf []byte) + func (pk *PublicKey) Scheme() kem.Scheme + func (pk *PublicKey) Unpack(buf []byte) error