symcrypt

package
v0.0.0-...-95e4a88 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2014 License: BSD-2-Clause Imports: 4 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