udwCryptoAesCtrV7

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: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt16NoRandom

func Decrypt16NoRandom(psk *[32]byte, in []byte) (out []byte, errMsg string)

func Decrypt32

func Decrypt32(psk *[32]byte, in []byte) (out []byte, errMsg string)

func Decrypt32FromBase64String

func Decrypt32FromBase64String(pskS string, inB64 string) (out []byte, ok bool)

func DecryptRecord

func DecryptRecord(req RecordRequest) (out []byte, errMsg string)

func Encrypt16NoRandom

func Encrypt16NoRandom(psk *[32]byte, in []byte) (out []byte)

func Encrypt32

func Encrypt32(psk *[32]byte, in []byte) (out []byte)

func Encrypt32ToBase64String

func Encrypt32ToBase64String(pskS string, in []byte) (outB64 string)

func EncryptRecord

func EncryptRecord(req RecordRequest) (out []byte)

func Get32PskSha3FromString

func Get32PskSha3FromString(s string) *[32]byte

Types

type RecordRequest

type RecordRequest struct {
	In  []byte
	Psk *[32]byte

	RandomOverHead int
	VerifyOverHead int
}

Jump to

Keyboard shortcuts

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