aesutil

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IVBlockSize = 16
	KeySize     = 32
)

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key *Key, cipherStreamReader io.Reader, decryptedStreamWriter io.Writer)

func DecryptData added in v1.0.1

func DecryptData(key *Key, cipherData []byte) []byte

func Encrypt

func Encrypt(key *Key, plainReader io.Reader, encryptedStreamWriter io.Writer)

func EncryptData added in v1.0.1

func EncryptData(key *Key, plainData []byte) []byte

Types

type Key

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

func NewKey

func NewKey() *Key

func ParseKey

func ParseKey(s string) *Key

func (*Key) String

func (receiver *Key) String() string

Jump to

Keyboard shortcuts

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