Versions in this module Expand all Collapse all v1 v1.0.0 May 30, 2021 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) + 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)