decryptor

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package decryptor provides functions to load keys, generate key pairs, derive shared secrets, and decrypt messages

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(sharedSecret [32]byte, ciphertext []byte) (plaintext []byte, err error)

func GenerateKeyPair

func GenerateKeyPair() ([32]byte, [32]byte)

func GetSharedSecret

func GetSharedSecret(privKey [32]byte, pubKey [32]byte) ([32]byte, error)

func LoadKey

func LoadKey(keyFiles embed.FS, filename string) ([32]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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