cipher

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decrypter

type Decrypter interface {
	Decrypt(EncryptedContent) (PlainContent, error)
}

Decrypter will decrypt data using specified method

type EncryptedContent

type EncryptedContent []byte

EncryptedContent typed version of byte array that holds encrypted data

type Encrypter

type Encrypter interface {
	Encrypt(rand io.Reader, pub keys.PublicKey, plain PlainContent) (EncryptedContent, error)
}

Encrypter will encrypt data using public key

type PlainContent

type PlainContent []byte

PlainContent typed version of byte array that holds plain data

Directories

Path Synopsis
package aes256cbc Advanced Encryption Standard, with a 256 bit key length, operating in the Chain Block Cipher mode (AES-256-CBC).
package aes256cbc Advanced Encryption Standard, with a 256 bit key length, operating in the Chain Block Cipher mode (AES-256-CBC).

Jump to

Keyboard shortcuts

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