aes

package
Version: v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT 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.

Source Files

Jump to

Keyboard shortcuts

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