ephemeral

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySize = 32
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

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

func FromBytes

func FromBytes(in []byte) (*Key, error)

func New

func New() (*Key, error)

func (*Key) EncodeToString

func (e *Key) EncodeToString() (pub string)

func (e *Key) EncodeToString() (pub, priv string) {

func (*Key) KeyPrint

func (e *Key) KeyPrint() string

func (*Key) Open

func (e *Key) Open(peer *Key, nonce, ciphertext []byte) ([]byte, bool)

func (*Key) Public

func (e *Key) Public() []byte

func (*Key) Seal

func (e *Key) Seal(peer *Key, nonce, plaintext []byte) ([]byte, error)

Seal should work with []byte / *Symmetric

func (*Key) String

func (e *Key) String() string

func (*Key) Wipe

func (e *Key) Wipe()

Jump to

Keyboard shortcuts

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