udwCryptoTester

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptTester

func EncryptTester(encrypt func(key *[32]byte, data []byte) (output []byte),
	decrypt func(key *[32]byte, data []byte) (output []byte, err error),
	maxOverhead int)

func EncryptTesterErrMsg

func EncryptTesterErrMsg(req EncryptTesterErrMsgRequest)

func EncryptTesterL2

func EncryptTesterL2(Encrypt func(data []byte) (output []byte), Decrypt func(data []byte) (output []byte, err error), MaxOverhead int)

Types

type EncryptTesterErrMsgNoKeyRequest

type EncryptTesterErrMsgNoKeyRequest struct {
	Encrypt     func(data []byte) (output []byte)
	Decrypt     func(data []byte) (output []byte, errMsg string)
	MaxOverhead int
}

type EncryptTesterErrMsgRequest

type EncryptTesterErrMsgRequest struct {
	Encrypt     func(key *[32]byte, data []byte) (output []byte)
	Decrypt     func(key *[32]byte, data []byte) (output []byte, errMsg string)
	DecryptErr  func(key *[32]byte, data []byte) (output []byte, err error)
	MaxOverhead int

	RandomCheckSize int
	NoRandom        bool
	NoCorrectVerify bool
}

Jump to

Keyboard shortcuts

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