hybrid

package
v0.0.0-...-17e6b21 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptedData

type EncryptedData struct {
	ClassicalCiphertext []byte
	QuantumCiphertext   []byte
	Signature           []byte
	Nonce               []byte
	Timestamp           time.Time
}

type HybridEncryptor

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

func NewHybridEncryptor

func NewHybridEncryptor(
	kyber *quantum.KyberEncryptor,
	dilithium *quantum.DilithiumSigner,
	metrics *metrics.QuantumStorageMetrics,
	tracer tracing.Tracer,
) *HybridEncryptor

func (*HybridEncryptor) Decrypt

func (h *HybridEncryptor) Decrypt(ctx context.Context, encData *EncryptedData, privateKey []byte) ([]byte, error)

func (*HybridEncryptor) Encrypt

func (h *HybridEncryptor) Encrypt(ctx context.Context, data []byte) (*EncryptedData, error)

Jump to

Keyboard shortcuts

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