cipher

package
v1.0.5010 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 11 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 struct {
	// contains filtered or unexported fields
}

*

  • Cipher *
  • @create 2022-7-26
  • @author deatil

func AddCipher added in v1.0.4031

func AddCipher(name string, block CipherFunc) *Cipher

func Default

func Default() *Cipher

return default cipher

func New

func New() *Cipher

New return a *Cipher

func WithCiphers added in v1.0.4031

func WithCiphers(ciphers CipherMap) *Cipher

func (*Cipher) Add added in v1.0.4031

func (this *Cipher) Add(name string, block CipherFunc) *Cipher

add one Cipher

func (*Cipher) Get added in v1.0.4031

func (this *Cipher) Get(name string) (CipherFunc, error)

get one Cipher

func (*Cipher) With added in v1.0.4031

func (this *Cipher) With(ciphers CipherMap) *Cipher

set ciphers

type CipherFunc

type CipherFunc = func([]byte) (cipher.Block, error)

CipherFunc

func GetCipher added in v1.0.4031

func GetCipher(name string) (CipherFunc, error)

type CipherMap added in v1.0.4031

type CipherMap = map[string]CipherFunc

Cipher map

Jump to

Keyboard shortcuts

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