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.
Click to show internal directories.
Click to hide internal directories.