aes

package
Version: v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AESGCMDecrypt

func AESGCMDecrypt(key, cipherMessage, additionalData []byte) ([]byte, error)

AESGCMDecrypt 根据 key 将密文 cipherMessage 进行 AES-GCM 解密,根据 additionalData 进行验证,返回明文 The key argument should be the AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.

func AESGCMEncrypt

func AESGCMEncrypt(key, plainText, additionalData []byte) ([]byte, error)

AESGCMEncrypt 根据 key 将明文 plainText 进行 AES-GCM 加密,根据 additionalData 进行验证,返回密文 The key argument should be the AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256.

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