Documentation ¶
Index ¶
- type DecrypterOpts
- type EncrypterOpts
- type HashOpts
- type KeyDerivOpts
- type KeyGenOpts
- type KeyImportOpts
- type KeyStore
- type MockCSP
- func (m *MockCSP) Decrypt(k csp.Key, ciphertext []byte, opts csp.DecrypterOpts) ([]byte, error)
- func (m *MockCSP) Encrypt(k csp.Key, plaintext []byte, opts csp.EncrypterOpts) ([]byte, error)
- func (*MockCSP) GetHash(opts csp.HashOpts) (hash.Hash, error)
- func (*MockCSP) GetKey(ski []byte) (csp.Key, error)
- func (m *MockCSP) Hash(msg []byte, opts csp.HashOpts) ([]byte, error)
- func (*MockCSP) KeyDeriv(k csp.Key, opts csp.KeyDerivOpts) (csp.Key, error)
- func (*MockCSP) KeyGen(opts csp.KeyGenOpts) (csp.Key, error)
- func (m *MockCSP) KeyImport(raw interface{}, opts csp.KeyImportOpts) (csp.Key, error)
- func (b *MockCSP) Sign(k csp.Key, digest []byte, opts csp.SignerOpts) ([]byte, error)
- func (b *MockCSP) Verify(k csp.Key, signature, digest []byte, opts csp.SignerOpts) (bool, error)
- type MockKey
- type SignerOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DecrypterOpts ¶
type DecrypterOpts struct{}
type EncrypterOpts ¶
type EncrypterOpts struct{}
type KeyDerivOpts ¶
type KeyDerivOpts struct {
EphemeralValue bool
}
func (*KeyDerivOpts) Algorithm ¶
func (*KeyDerivOpts) Algorithm() string
func (*KeyDerivOpts) Ephemeral ¶
func (o *KeyDerivOpts) Ephemeral() bool
type KeyGenOpts ¶
type KeyGenOpts struct {
EphemeralValue bool
}
func (*KeyGenOpts) Algorithm ¶
func (*KeyGenOpts) Algorithm() string
func (*KeyGenOpts) Ephemeral ¶
func (o *KeyGenOpts) Ephemeral() bool
type KeyImportOpts ¶
type KeyImportOpts struct{}
func (*KeyImportOpts) Algorithm ¶
func (*KeyImportOpts) Algorithm() string
func (*KeyImportOpts) Ephemeral ¶
func (*KeyImportOpts) Ephemeral() bool
type MockCSP ¶
type MockCSP struct { SignArgKey csp.Key SignDigestArg []byte SignOptsArg csp.SignerOpts SignValue []byte SignErr error VerifyValue bool VerifyErr error ExpectedSig []byte KeyImportValue csp.Key KeyImportErr error EncryptError error DecryptError error HashVal []byte HashErr error }
type SignerOpts ¶
func (*SignerOpts) HashFunc ¶
func (o *SignerOpts) HashFunc() crypto.Hash
Click to show internal directories.
Click to hide internal directories.