symcrypt

package
v0.0.0-...-9cf4858 Latest Latest
Warning

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

Go to latest
Published: May 10, 2016 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package symcrypt contains common symmetric encryption functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptCBC

func DecryptCBC(data, iv, key []byte) (decryptedData []byte, err error)

DecryptCBC decrypt bytes using a key and IV with AES in CBC mode.

func EncryptCBC

func EncryptCBC(data, iv, key []byte) (encryptedData []byte, err error)

EncryptCBC encrypt data using a key and IV with AES in CBC mode.

func MakeRandom

func MakeRandom(length int) ([]byte, error)

MakeRandom is a helper that makes a new buffer full of random data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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