security

package
v0.0.0-...-fc7dab2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKeyExchange

func NewKeyExchange() (*dhKeyCtx, error)

func NewSymCipher

func NewSymCipher(key []byte, nonce []byte) (*symCipher, error)

Types

type DhKeyExchange

type DhKeyExchange interface {
	GetPublicKey() []byte
	ComputeKey([]byte) []byte
}

type SymCipher

type SymCipher interface {
	GetNonce() []byte
	Encrypt([]byte) []byte
	Decrypt([]byte) []byte
}

Jump to

Keyboard shortcuts

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