aes

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCBCDncrypt

func AesCBCDncrypt(encryptData, key, iv []byte) ([]byte, error)

func AesCBCEncrypt

func AesCBCEncrypt(rawData, key, iv []byte) ([]byte, error)

func AesGCMDecrypt added in v1.1.1

func AesGCMDecrypt(ciphertext, key, nonce []byte) ([]byte, error)

AesGCMDecrypt 使用 AES-GCM 模式解密数据

func AesGCMEncrypt added in v1.1.1

func AesGCMEncrypt(plaintext, key, nonce []byte) ([]byte, error)

AesGCMEncrypt 使用 AES-GCM 模式加密数据

func Dncrypt

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

func Encrypt

func Encrypt(rawData, key, iv []byte) (out []byte, err error)

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(origData []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