crypts

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagerImpl

type ManagerImpl struct {
	Regs []keys.Registry //starter:inject(".")
	// contains filtered or unexported fields
}

ManagerImpl 实现 keys.Manager

func (*ManagerImpl) Find

func (inst *ManagerImpl) Find(algorithm string) ([]keys.Algorithm, error)

Find 根据名称,查找算法(可能有多条结果)

func (*ManagerImpl) Get

func (inst *ManagerImpl) Get(algorithm string, selector func(reg *keys.Registration) bool) (keys.Algorithm, error)

Get 根据名称,查找算法

func (*ManagerImpl) Len

func (inst *ManagerImpl) Len() int

func (*ManagerImpl) Less

func (inst *ManagerImpl) Less(a, b int) bool

func (*ManagerImpl) Swap

func (inst *ManagerImpl) Swap(a, b int)

type ServiceImpl

type ServiceImpl struct {
	Manager keys.Manager //starter:inject("#")
	// contains filtered or unexported fields
}

ServiceImpl 实现 keys.Service

func (*ServiceImpl) GetKeyPairAlgorithm

func (inst *ServiceImpl) GetKeyPairAlgorithm(algorithm string, selector func(reg *keys.Registration) bool) (keys.KeyPairAlgorithm, error)

GetKeyPairAlgorithm ...

func (*ServiceImpl) GetManager

func (inst *ServiceImpl) GetManager() keys.Manager

GetManager ...

func (*ServiceImpl) GetSecretKeyAlgorithm

func (inst *ServiceImpl) GetSecretKeyAlgorithm(algorithm string, selector func(reg *keys.Registration) bool) (keys.SecretKeyAlgorithm, error)

GetSecretKeyAlgorithm ...

func (*ServiceImpl) GetSignatureAlgorithm

func (inst *ServiceImpl) GetSignatureAlgorithm(algorithm string, selector func(reg *keys.Registration) bool) (keys.SignatureAlgorithm, error)

GetSignatureAlgorithm ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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