Documentation ¶
Index ¶
- func NewMockKeyStore() csp.KeyStore
- type MockCSP
- func (m *MockCSP) Decrypt(key csp.Key, ciphertext []byte, opts csp.DecrypterOpts) ([]byte, error)
- func (m *MockCSP) Encrypt(key 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(csp.KeyDerivOpts) (csp.Key, error)
- func (*MockCSP) KeyGen(csp.KeyGenOpts) (csp.Key, error)
- func (m *MockCSP) KeyImport(raw interface{}, opts csp.KeyImportOpts) (csp.Key, error)
- func (m *MockCSP) Sign(key csp.Key, digest []byte, opts csp.SignerOpts) ([]byte, error)
- func (m *MockCSP) Verify(key csp.Key, signature, digest []byte, opts csp.SignerOpts) (bool, error)
- type MockKeyStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockKeyStore ¶
Types ¶
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 EncryptErr error DecryptErr error HashValue []byte HashErr error }
type MockKeyStore ¶
type MockKeyStore struct {
// contains filtered or unexported fields
}
func (*MockKeyStore) Num ¶
func (m *MockKeyStore) Num() int
func (*MockKeyStore) ReadOnly ¶
func (m *MockKeyStore) ReadOnly() bool
Click to show internal directories.
Click to hide internal directories.