aes

package
v0.1.0-beta-005 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecryptFunc

type DecryptFunc = func(cipher []byte) (plain []byte, err error)

DecryptFunc decrypts a cipher into the plain message using AES in block chaining mode.

func CreateDecryptFunc

func CreateDecryptFunc(key []byte) DecryptFunc

CreateDecryptFunc creates a new `aes.DecryptFunc` function with the given symmetric key.

type EncryptFunc

type EncryptFunc = func(plain []byte) (cipher []byte, err error)

EncryptFunc encrypts a plain message using AES in block chaining mode.

func CreateEncryptFunc

func CreateEncryptFunc(key []byte) EncryptFunc

CreateEncryptFunc creates a new `aes.EncryptFunc` function with the given symmetric key.

Jump to

Keyboard shortcuts

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