aes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CBCDecrypt

func CBCDecrypt(crypted, key, iv []byte) ([]byte, error)

func CBCEncrypt

func CBCEncrypt(origData, key, iv []byte) ([]byte, error)

func ECBDecrypt

func ECBDecrypt(crypted, key []byte) ([]byte, error)

func ECBEncrypt

func ECBEncrypt(data, key []byte) ([]byte, error)

func NewECBDecrypter

func NewECBDecrypter(b cipher.Block) cipher.BlockMode

NewECBDecrypter returns a BlockMode which decrypts in electronic code book mode, using the given Block

func NewECBEncrypter

func NewECBEncrypter(b cipher.Block) cipher.BlockMode

NewECBEncrypter returns a BlockMode which encrypts in electronic code book mode, using the given Block.

func Pkcs5Padding

func Pkcs5Padding(cipherText []byte, blockSize int) []byte

func Pkcs7Padding

func Pkcs7Padding(cipherText []byte, blockSize int) []byte

func UnPadding

func UnPadding(origData []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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