aes

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptCBC

func DecryptCBC(key string, cipherText []byte) ([]byte, error)

DecryptCBC AES decrypt func, CBC mode.

func DecryptECB

func DecryptECB(key string, cipherText []byte) ([]byte, error)

DecryptECB AES decrypt, ECB mode.

func EncryptCBC

func EncryptCBC(key string, plainText []byte) ([]byte, error)

EncryptCBC AES encrypt func, CBC mode.

func EncryptECB

func EncryptECB(key string, plainText []byte) ([]byte, error)

EncryptECB AES encrypt, ECB mode.

func PKCS5Padding

func PKCS5Padding(plainText []byte, blockSize int) ([]byte, error)

func PKCS5UnPadding

func PKCS5UnPadding(plainText []byte) ([]byte, error)

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(plainText []byte) ([]byte, error)

func ZeroPadding

func ZeroPadding(plainText []byte, blockSize int) []byte

func ZeroUnPadding

func ZeroUnPadding(plainText []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