aes

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAesBlockSize = errors.New("plaintext is not a multiple of the block size")
	ErrAesSrcSize   = errors.New("ciphertext too short")
	ErrAesIVSize    = errors.New("iv size is not a block size")
)

Functions

func CBCDecrypt

func CBCDecrypt(src, key, iv []byte, p padding.Padding) ([]byte, error)

CBCDecrypt aes cbc decrypt.

func CBCEncrypt

func CBCEncrypt(src, key, iv []byte, p padding.Padding) ([]byte, error)

CBCEncrypt aes cbc encrypt.

func ECBDecrypt

func ECBDecrypt(src, key []byte, p padding.Padding) ([]byte, error)

ECBDecrypt aes ecb decrypt.

func ECBEncrypt

func ECBEncrypt(src, key []byte, p padding.Padding) ([]byte, error)

ECBEncrypt aes ecb encrypt.

Types

This section is empty.

Jump to

Keyboard shortcuts

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