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