external

package
v0.0.0-...-474b02f Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeyPair

func CreateKeyPair(keyPair *t.KeyPair, privateKey *t.PrivateKey, publicKey *t.PublicKey)

func Decrypt

func Decrypt(plainText *[]byte, key *t.SecretKey, nonce *t.Nonce, cipherText *[]byte) bool

func DiffieHellman

func DiffieHellman(
	sharedSecretRef *t.SharedSecret,
	ourPrivateKey *t.PrivateKey,
	theirPublicKey *t.PublicKey,
) bool

func Encrypt

func Encrypt(cipherText *[]byte, key *t.SecretKey, nonce *t.Nonce, plaintext *[]byte) bool

func Hash

func Hash(digest *t.Digest, message []byte) bool

func Hkdf

func Hkdf(okm *[]byte, ikm *[]byte, salt *[]byte, info *[]byte) bool

func Init

func Init() bool

func KeyPairEphemeral

func KeyPairEphemeral(keyPair *t.KeyPair) bool

func KeyPairIdentity

func KeyPairIdentity(keyPair *t.KeyPair) bool

func Sign

func Sign(signature *t.Signature, keyPair *t.KeyPair, message *[]byte) bool

func Verify

func Verify(publicKey *t.PublicKey, signature *t.Signature, message *[]byte) bool

func Zeroize

func Zeroize(data *[]byte)

func Zeroize32

func Zeroize32(arr *[32]byte)

func Zeroize64

func Zeroize64(arr *[64]byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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