symcrypt

package
Version: v0.0.0-...-75dfb8e Latest Latest
Warning

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

Go to latest
Published: Nov 9, 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.

Source Files

Jump to

Keyboard shortcuts

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