softimpl

package
v0.0.0-...-51fbea3 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 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 csp.KeyStore) (csp.CSP, error)

func RegisterWidget

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

Types

type SoftCSPImpl

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

func (*SoftCSPImpl) CAGen

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

func (*SoftCSPImpl) Decrypt

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

func (*SoftCSPImpl) Encrypt

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

func (*SoftCSPImpl) GetHash

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

func (*SoftCSPImpl) GetKey

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

func (*SoftCSPImpl) Hash

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

func (*SoftCSPImpl) KeyDeriv

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

func (*SoftCSPImpl) KeyGen

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

func (*SoftCSPImpl) KeyImport

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

func (*SoftCSPImpl) Sign

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

func (*SoftCSPImpl) Verify

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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