aes

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesECBDecrypt

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

AES/ECB/PKCS7模式解密--签名解密方式

func AesECBEncrypt

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

AES/ECB/PKCS7模式加密--签名加密方式

func NewECBDecryptEr

func NewECBDecryptEr(b cipher.Block) cipher.BlockMode

func NewECBEncryptEr

func NewECBEncryptEr(b cipher.Block) cipher.BlockMode

func PKCS7Padding

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

PKCS7加填充/和PKCS5填充一样,只是填充字段多少的区别

func PKCS7UnPadding

func PKCS7UnPadding(encrypt []byte) []byte

PKCS7解填充/和PKCS5填充一样,只是填充字段多少的区别

Types

This section is empty.

Jump to

Keyboard shortcuts

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