softimpl

package
v0.0.0-...-beacba6 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSoftCSPImpl

func NewSoftCSPImpl(ks interfaces.KeyStore) (interfaces.CSP, error)

func RegisterWidget

func RegisterWidget(csp *SoftCSPImpl, t reflect.Type, w interface{}) error

Types

type SoftCSPImpl

type SoftCSPImpl struct {
	KeyGenerators map[reflect.Type]interfaces.KeyGenerator
	KeyDerivers   map[reflect.Type]interfaces.KeyDeriver
	KeyImporters  map[reflect.Type]interfaces.KeyImporter
	Encrypters    map[reflect.Type]interfaces.Encrypter
	Decrypters    map[reflect.Type]interfaces.Decrypter
	Signers       map[reflect.Type]interfaces.Signer
	Verifiers     map[reflect.Type]interfaces.Verifier
	Hashers       map[reflect.Type]interfaces.Hasher
	CAGenerators  map[reflect.Type]interfaces.CAGenerator
	// contains filtered or unexported fields
}

func (*SoftCSPImpl) CAGen

func (csp *SoftCSPImpl) CAGen(opts interfaces.CAGenOpts) (interfaces.CA, error)

func (*SoftCSPImpl) Decrypt

func (csp *SoftCSPImpl) Decrypt(key interfaces.Key, ciphertext []byte, opts interfaces.DecrypterOpts) ([]byte, error)

func (*SoftCSPImpl) Encrypt

func (csp *SoftCSPImpl) Encrypt(key interfaces.Key, plaintext []byte, opts interfaces.EncrypterOpts) ([]byte, error)

func (*SoftCSPImpl) GetHash

func (csp *SoftCSPImpl) GetHash(opts interfaces.HashOpts) (hash.Hash, error)

func (*SoftCSPImpl) GetKey

func (csp *SoftCSPImpl) GetKey(ski []byte) (interfaces.Key, error)

func (*SoftCSPImpl) Hash

func (csp *SoftCSPImpl) Hash(msg []byte, opts interfaces.HashOpts) ([]byte, error)

func (*SoftCSPImpl) KeyDeriv

func (csp *SoftCSPImpl) KeyDeriv(key interfaces.Key, opts interfaces.KeyDerivOpts) (interfaces.Key, error)

func (*SoftCSPImpl) KeyGen

func (csp *SoftCSPImpl) KeyGen(opts interfaces.KeyGenOpts) (interfaces.Key, error)

func (*SoftCSPImpl) KeyImport

func (csp *SoftCSPImpl) KeyImport(raw interface{}, opts interfaces.KeyImportOpts) (interfaces.Key, error)

func (*SoftCSPImpl) Sign

func (csp *SoftCSPImpl) Sign(key interfaces.Key, digest []byte, opts interfaces.SignerOpts) ([]byte, error)

func (*SoftCSPImpl) Verify

func (csp *SoftCSPImpl) Verify(key interfaces.Key, sig, digest []byte, opts interfaces.SignerOpts) (bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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