encryption

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encryption

type Encryption interface {
	// NewIV returns an initialization vector.
	NewIV() []byte

	// Encrypt the data using the initialization vector.
	Encrypt(iv, data []byte) ([]byte, error)

	// Decrypt the data using the initialization vector.
	Decrypt(iv, data []byte) ([]byte, error)
}

Encryption is an interface for encrypting and decrypting data.

Jump to

Keyboard shortcuts

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