aes

package
Version: v0.0.0-...-e20b906 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptCBC

func DecryptCBC(key, iv, text []byte) ([]byte, error)

DecryptCBC performs an aes-cbc decryption.

func DecryptGCM

func DecryptGCM(key, iv, text, extraData []byte) ([]byte, error)

DecryptGCM performs an aes-gcm decryption.

func EncryptCBC

func EncryptCBC(key, iv, text []byte) ([]byte, error)

EncryptCBC performs an aes-cbc encryption. A default padding is added to the plaintext by the webcryptoapi, according to RFC2315-10.3.

func EncryptGCM

func EncryptGCM(key, iv, text, extraData []byte) ([]byte, error)

EncryptGCM performs an aes-gcm encryption. The 16 last bytes of the output is the tag.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL