Documentation ¶
Index ¶
- type DecrypterOpts
- type EncrypterOpts
- type HashOpts
- type KeyDerivOpts
- type KeyGenOpts
- type KeyImportOpts
- type KeyStore
- type MockBCCSP
- func (m *MockBCCSP) Decrypt(k bccsp.Key, ciphertext []byte, opts bccsp.DecrypterOpts) ([]byte, error)
- func (m *MockBCCSP) Encrypt(k bccsp.Key, plaintext []byte, opts bccsp.EncrypterOpts) ([]byte, error)
- func (*MockBCCSP) GetHash(opts bccsp.HashOpts) (hash.Hash, error)
- func (*MockBCCSP) GetKey(ski []byte) (bccsp.Key, error)
- func (m *MockBCCSP) Hash(msg []byte, opts bccsp.HashOpts) ([]byte, error)
- func (*MockBCCSP) KeyDeriv(k bccsp.Key, opts bccsp.KeyDerivOpts) (bccsp.Key, error)
- func (*MockBCCSP) KeyGen(opts bccsp.KeyGenOpts) (bccsp.Key, error)
- func (m *MockBCCSP) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (bccsp.Key, error)
- func (b *MockBCCSP) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error)
- func (b *MockBCCSP) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.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 ¶ added in v1.1.0
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 MockBCCSP ¶
type MockBCCSP struct { SignArgKey bccsp.Key SignDigestArg []byte SignOptsArg bccsp.SignerOpts SignValue []byte SignErr error VerifyValue bool VerifyErr error ExpectedSig []byte KeyImportValue bccsp.Key KeyImportErr error EncryptError error DecryptError error HashVal []byte HashErr error }
type MockKey ¶
type SignerOpts ¶
func (*SignerOpts) HashFunc ¶
func (o *SignerOpts) HashFunc() crypto.Hash
Click to show internal directories.
Click to hide internal directories.