crypto

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto struct {
	EncryptValue      []byte
	EncryptNonceValue []byte
	EncryptErr        error
	DecryptValue      []byte
	DecryptErr        error
	SignValue         []byte
	SignErr           error
	VerifyErr         error
}

Crypto mock

func (*Crypto) Decrypt

func (c *Crypto) Decrypt(cipher, aad, nonce []byte, kh interface{}) ([]byte, error)

Decrypt mocked value

func (*Crypto) Encrypt

func (c *Crypto) Encrypt(msg, aad []byte, kh interface{}) ([]byte, []byte, error)

Encrypt mocked value

func (*Crypto) Sign

func (c *Crypto) Sign(msg []byte, kh interface{}) ([]byte, error)

Sign mocked value

func (*Crypto) Verify

func (c *Crypto) Verify(signature, msg []byte, kh interface{}) error

Verify mocked value

Jump to

Keyboard shortcuts

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