mxaes

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInputNotFullBlocks = errors.New("crypto/cipher: input not full blocks")
)

Functions

func Decrypt

func Decrypt(decryptData, key, iv []byte) (srcData []byte, err error)

解密

func Decrypt2

func Decrypt2(decryptData, key, iv []byte) (srcData []byte, err error)

func Encrypt

func Encrypt(srcData, key, iv []byte) (encryptData []byte, err error)

加密

func PKCS5Padding

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

填充

func PKCS5UnPadding

func PKCS5UnPadding(origData []byte) []byte

填充

func PKCS7UnPadding

func PKCS7UnPadding(data []byte, blockSize int) ([]byte, error)

填充

Types

This section is empty.

Jump to

Keyboard shortcuts

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