Documentation ¶
Index ¶
- func NewSoftCSPImpl(ks interfaces.KeyStore) (interfaces.CSP, error)
- func RegisterWidget(csp *SoftCSPImpl, t reflect.Type, w interface{}) error
- type SoftCSPImpl
- func (csp *SoftCSPImpl) CAGen(opts interfaces.CAGenOpts) (interfaces.CA, error)
- func (csp *SoftCSPImpl) Decrypt(key interfaces.Key, ciphertext []byte, opts interfaces.DecrypterOpts) ([]byte, error)
- func (csp *SoftCSPImpl) Encrypt(key interfaces.Key, plaintext []byte, opts interfaces.EncrypterOpts) ([]byte, error)
- func (csp *SoftCSPImpl) GetHash(opts interfaces.HashOpts) (hash.Hash, error)
- func (csp *SoftCSPImpl) GetKey(ski []byte) (interfaces.Key, error)
- func (csp *SoftCSPImpl) Hash(msg []byte, opts interfaces.HashOpts) ([]byte, error)
- func (csp *SoftCSPImpl) KeyDeriv(key interfaces.Key, opts interfaces.KeyDerivOpts) (interfaces.Key, error)
- func (csp *SoftCSPImpl) KeyGen(opts interfaces.KeyGenOpts) (interfaces.Key, error)
- func (csp *SoftCSPImpl) KeyImport(raw interface{}, opts interfaces.KeyImportOpts) (interfaces.Key, error)
- func (csp *SoftCSPImpl) Sign(key interfaces.Key, digest []byte, opts interfaces.SignerOpts) ([]byte, error)
- func (csp *SoftCSPImpl) Verify(key interfaces.Key, sig, digest []byte, opts interfaces.SignerOpts) (bool, error)
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)
Click to show internal directories.
Click to hide internal directories.