Versions in this module Expand all Collapse all v1 v1.4.9 Jul 22, 2021 Changes in this version + type DecrypterOpts struct + type EncrypterOpts struct + type HashOpts struct + func (HashOpts) Algorithm() string + type KeyDerivOpts struct + EphemeralValue bool + func (*KeyDerivOpts) Algorithm() string + func (o *KeyDerivOpts) Ephemeral() bool + type KeyGenOpts struct + EphemeralValue bool + func (*KeyGenOpts) Algorithm() string + func (o *KeyGenOpts) Ephemeral() bool + type KeyImportOpts struct + func (*KeyImportOpts) Algorithm() string + func (*KeyImportOpts) Ephemeral() bool + type KeyStore struct + GetKeyErr error + GetKeyValue bccsp.Key + StoreKeyErr error + func (*KeyStore) ReadOnly() bool + func (ks *KeyStore) GetKey(ski []byte) (bccsp.Key, error) + func (ks *KeyStore) StoreKey(k bccsp.Key) error + type MockBCCSP struct + DecryptError error + EncryptError error + ExpectedSig []byte + HashErr error + HashVal []byte + KeyImportErr error + KeyImportValue bccsp.Key + SignArgKey bccsp.Key + SignDigestArg []byte + SignErr error + SignOptsArg bccsp.SignerOpts + SignValue []byte + VerifyErr error + VerifyValue bool + func (*MockBCCSP) GetHash(opts bccsp.HashOpts) (hash.Hash, error) + func (*MockBCCSP) GetKey(ski []byte) (bccsp.Key, error) + func (*MockBCCSP) KeyDeriv(k bccsp.Key, opts bccsp.KeyDerivOpts) (bccsp.Key, error) + func (*MockBCCSP) KeyGen(opts bccsp.KeyGenOpts) (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) + 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 (m *MockBCCSP) Hash(msg []byte, opts bccsp.HashOpts) ([]byte, error) + func (m *MockBCCSP) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (bccsp.Key, error) + type MockKey struct + BytesErr error + BytesValue []byte + PK bccsp.Key + PKErr error + Pvt bool + Symm bool + func (*MockKey) SKI() []byte + func (m *MockKey) Bytes() ([]byte, error) + func (m *MockKey) Private() bool + func (m *MockKey) PublicKey() (bccsp.Key, error) + func (m *MockKey) Symmetric() bool + type SignerOpts struct + HashFuncValue crypto.Hash + func (o *SignerOpts) HashFunc() crypto.Hash