kem_sntrup

package
v0.0.0-...-cb92b4e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrivateKey4591761Size = ntru.PrivateKeySize
	PublicKey4591761Size  = ntru.PublicKeySize
	Ciphertext4591761Size = ntru.CiphertextSize
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ciphertext4591761

type Ciphertext4591761 = ntru.Ciphertext

type PrivateKey4591761

type PrivateKey4591761 = ntru.PrivateKey

type PublicKey4591761

type PublicKey4591761 = ntru.PublicKey

type Scheme4591761

type Scheme4591761 struct{}

func New4591761

func New4591761() Scheme4591761

func (Scheme4591761) CiphertextSize

func (s Scheme4591761) CiphertextSize() int

func (Scheme4591761) Decapsulate

func (s Scheme4591761) Decapsulate(ss *kem.Secret256, priv *PrivateKey4591761, ctext []byte) error

func (Scheme4591761) DerivePublic

func (s Scheme4591761) DerivePublic(priv *PrivateKey4591761) (pub PublicKey4591761)

func (Scheme4591761) Encapsulate

func (s Scheme4591761) Encapsulate(ss *kem.Secret256, ctext []byte, pk *PublicKey4591761, seed *kem.Seed) error

func (Scheme4591761) Generate

func (Scheme4591761) MarshalPrivate

func (s Scheme4591761) MarshalPrivate(dst []byte, priv *PrivateKey4591761)

func (Scheme4591761) MarshalPublic

func (s Scheme4591761) MarshalPublic(dst []byte, x *PublicKey4591761)

func (Scheme4591761) ParsePrivate

func (s Scheme4591761) ParsePrivate(x []byte) (PrivateKey4591761, error)

func (Scheme4591761) ParsePublic

func (s Scheme4591761) ParsePublic(x []byte) (PublicKey4591761, error)

func (Scheme4591761) PrivateKeySize

func (s Scheme4591761) PrivateKeySize() int

func (Scheme4591761) PublicKeySize

func (s Scheme4591761) PublicKeySize() int

Jump to

Keyboard shortcuts

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