kem

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Overview

Package kem implments the PQNoise Key Encapsulation Mechanism function abstract interface and "standard" functions.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMalformedCiphertext is the error returns when a serialized
	// ciphertext is malformed.
	ErrMalformedCiphertext = errors.New("nyquist/kem: malformed ciphertext")
)

Functions

func Dec added in v0.0.3

func Dec(privateKey kem.PrivateKey, ciphertext []byte) ([]byte, error)

func Enc added in v0.0.3

func Enc(genRand seec.GenRand, pubTo kem.PublicKey) ([]byte, []byte, error)

func GenerateKeypair added in v0.0.3

func GenerateKeypair(scheme kem.Scheme, genRand seec.GenRand) (kem.PublicKey, kem.PrivateKey)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL