aes

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package aes provides simple wrappers for encrypting and decrypting with AES256 and Galois Counter Mode (GCM) as AEAD.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAesGcm

func DecryptAesGcm(key []byte, msg []byte) []byte

DecryptAesGcm decrypts a byte slice that has been encrypted with EncryptAesGcm.

func EncryptAesGcm

func EncryptAesGcm(key []byte, nonce []byte, msg []byte) []byte

EncryptAesGcm encrypts a byte slice with the given 256bit key and nonce using Galois Counter Mode as AEAD. The nonce has to be 12 bytes long and will be prepended to the ciphertext.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳