aes

package
v0.0.0-...-1a2806f Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CBCDecrypt

func CBCDecrypt(ciphertext []byte, key []byte) ([]byte, error)

func CBCEncrypt

func CBCEncrypt(plantText []byte, key []byte) ([]byte, error)

func CBCIvDecrypt

func CBCIvDecrypt(ciphertext []byte, key []byte, iv []byte) ([]byte, error)

func CBCIvEncrypt

func CBCIvEncrypt(plantText []byte, key []byte, iv []byte) ([]byte, error)

func ECBDecrypt

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

func ECBEncrypt

func ECBEncrypt(content []byte, 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 PKCS7Padding

func PKCS7Padding(ciphertext []byte, blockSize int) []byte

func PKCS7UnPadding

func PKCS7UnPadding(plantText []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