aes_encryption

package
v0.0.0-...-42652ab Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCbcDecrypt

func AesCbcDecrypt(cipherText, cek, iv, authTag []byte) ([]byte, error)

func AesCbcEncrypt

func AesCbcEncrypt(plainText, cek, iv, aad []byte) ([]byte, []byte, error)

func AesGcmDecrypt

func AesGcmDecrypt(cipherText, cek, nonce, authTag, aad []byte) ([]byte, error)

AES-GCM Decryption

func AesGcmEncrypt

func AesGcmEncrypt(plainText, cek, nonce, aad []byte) ([]byte, []byte, error)

AES-GCM Encryption

func GenerateCEK

func GenerateCEK(bitLength int) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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