aes

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CBCDecrypt

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

AES解密(CBC模式) 指定初始化向量IV,和加密的一致

func CBCEncrypt

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

AES加密(CBC模式) 指定初始向量vi,长度和block的块尺寸一致

func Decrypt

func Decrypt(cipherText []byte, key []byte) ([]byte, error)

func Encrypt

func Encrypt(plainText []byte, key []byte) ([]byte, error)

func Padding

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

对明文进行填充

func UnPadding

func UnPadding(cipherText []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