kyber

package
v0.0.0-...-5f74ff4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: Apache-2.0, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CiphertextSize = 1088
	PublicKeySize  = 1184
	PrivateKeySize = 2400
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateKey

type PrivateKey struct {
	PublicKey
	// contains filtered or unexported fields
}

func NewPrivateKey

func NewPrivateKey(entropy *[64]byte) (*PrivateKey, *[PublicKeySize]byte)

func (*PrivateKey) Decap

func (priv *PrivateKey) Decap(outSharedSecret []byte, ciphertext *[CiphertextSize]byte)

func (*PrivateKey) Marshal

func (priv *PrivateKey) Marshal() *[PrivateKeySize]byte

type PublicKey

type PublicKey struct {
	// contains filtered or unexported fields
}

func UnmarshalPublicKey

func UnmarshalPublicKey(data *[PublicKeySize]byte) (*PublicKey, bool)

func (*PublicKey) Encap

func (pub *PublicKey) Encap(outSharedSecret []byte, entropy *[32]byte) *[CiphertextSize]byte

func (*PublicKey) Marshal

func (pub *PublicKey) Marshal() *[PublicKeySize]byte

Jump to

Keyboard shortcuts

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