aes

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HMACHash  = crypto.SHA256
	BlockSize = aes.BlockSize
)

Functions

func CTRStream

func CTRStream(src io.Reader, dst io.Writer, key, iv []byte) error

func CtrStreamEtM

func CtrStreamEtM(src io.Reader, dst io.Writer, key, iv []byte, decrypt bool) error

func GCMOpen

func GCMOpen(ciphertext, key, nonce []byte) ([]byte, error)

func GCMSeal

func GCMSeal(plaintext, key, nonce []byte) ([]byte, error)

func OFBStream

func OFBStream(src io.Reader, dst io.Writer, key, iv []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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