cryptoservice

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package cryptoservice contains an interface for block crypto systems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoService

type CryptoService interface {
	// SetKey sets secret key for CryptoService instance.
	SetKey([]byte)

	// SetIV sets initialization vector for CryptoService instance.
	SetIV([]byte)

	// Encrypt encrypts data using secret key and IV.
	Encrypt([]byte) ([]byte, error)

	// Decrypt decrypts data using secret key and IV.
	Decrypt([]byte) ([]byte, error)
}

CryptoService is an interface for block crypto systems with IV required.

Jump to

Keyboard shortcuts

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