aes

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data []byte, key, iv []byte) ([]byte, error)

Decrypt aes decrypt

func Encrypt

func Encrypt(data []byte, key, iv []byte) ([]byte, error)

Encrypt aes encrypt

func PKCS7Padding

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

PKCS7Padding PKCS7补码, 可以参考下http://blog.studygolang.com/167.html

func UnPKCS7Padding

func UnPKCS7Padding(data []byte) []byte

UnPKCS7Padding 去除PKCS7的补码

Types

This section is empty.

Jump to

Keyboard shortcuts

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