Versions in this module Expand all Collapse all v1 v1.3.71 Apr 15, 2024 Changes in this version + const Fp434 + const Fp503 + const Fp751 + const KeyVariantSidhA + const KeyVariantSidhB + const KeyVariantSike + type KEM struct + func NewSike434(rng io.Reader) *KEM + func NewSike503(rng io.Reader) *KEM + func NewSike751(rng io.Reader) *KEM + func (c *KEM) Allocate(id uint8, rng io.Reader) + func (c *KEM) CiphertextSize() int + func (c *KEM) Decapsulate(secret []byte, prv *PrivateKey, pub *PublicKey, ciphertext []byte) error + func (c *KEM) Encapsulate(ciphertext, secret []byte, pub *PublicKey) error + func (c *KEM) PrivateKeySize() int + func (c *KEM) PublicKeySize() int + func (c *KEM) Reset() + func (c *KEM) SharedSecretSize() int + type KeyVariant uint + type PrivateKey struct + S []byte + Scalar []byte + func NewPrivateKey(id uint8, v KeyVariant) *PrivateKey + func (key *PrivateKey) Variant() KeyVariant + func (prv *PrivateKey) DeriveSecret(ss []byte, pub *PublicKey) + func (prv *PrivateKey) Export(out []byte) + func (prv *PrivateKey) Generate(rand io.Reader) error + func (prv *PrivateKey) GeneratePublicKey(pub *PublicKey) + func (prv *PrivateKey) Import(input []byte) error + func (prv *PrivateKey) SharedSecretSize() int + func (prv *PrivateKey) Size() int + type PublicKey struct + func NewPublicKey(id uint8, v KeyVariant) *PublicKey + func (key *PublicKey) Variant() KeyVariant + func (pub *PublicKey) Export(out []byte) + func (pub *PublicKey) Import(input []byte) error + func (pub *PublicKey) Size() int