Documentation ¶
Overview ¶
Package encryption provides a set of encryption algorithms found in several versions of Rendez-Vous for encrypting payloads
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm interface { Key() []byte SetKey(key []byte) error Encrypt(payload []byte) ([]byte, error) Decrypt(payload []byte) ([]byte, error) Copy() Algorithm }
Algorithm defines all the methods a compression algorithm should have
type Dummy ¶
type Dummy struct {
// contains filtered or unexported fields
}
Dummy does no encryption. Payloads are returned as-is
func NewDummyEncryption ¶
func NewDummyEncryption() *Dummy
NewDummyEncryption returns a new instance of the Dummy encryption
type QuazalRC4 ¶
type QuazalRC4 struct {
// contains filtered or unexported fields
}
QuazalRC4 encrypts data with RC4. Each iteration uses a new cipher instance. The key is always CD&ML
func NewQuazalRC4Encryption ¶
func NewQuazalRC4Encryption() *QuazalRC4
NewQuazalRC4Encryption returns a new instance of the QuazalRC4 encryption
type RC4 ¶
type RC4 struct {
// contains filtered or unexported fields
}
RC4 encrypts data with RC4
func NewRC4Encryption ¶
func NewRC4Encryption() *RC4
NewRC4Encryption returns a new instance of the RC4 encryption
Click to show internal directories.
Click to hide internal directories.