cipher

package
v0.0.0-...-273cdd3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher interface {
	Encode([]byte) ([]byte, error)
	Decode([]byte) ([]byte, error)
}

type EmptyCipher

type EmptyCipher struct {
}

func (*EmptyCipher) Decode

func (cipher *EmptyCipher) Decode(stream []byte) ([]byte, error)

func (*EmptyCipher) Encode

func (cipher *EmptyCipher) Encode(raw []byte) ([]byte, error)

type EmptyMaker

type EmptyMaker struct {
	// contains filtered or unexported fields
}

func (EmptyMaker) New

func (maker EmptyMaker) New() Cipher

type IndexCipher

type IndexCipher struct {
	// contains filtered or unexported fields
}

func (*IndexCipher) Decode

func (cipher *IndexCipher) Decode(stream []byte) ([]byte, error)

func (*IndexCipher) Encode

func (cipher *IndexCipher) Encode(raw []byte) ([]byte, error)

type IndexMaker

type IndexMaker struct {
}

func (IndexMaker) New

func (maker IndexMaker) New() Cipher

type Maker

type Maker interface {
	New() Cipher
}

Jump to

Keyboard shortcuts

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