{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package mocks\n\n## Types\n\n```go\ntype DecrypterOpts struct{}\n```\n\n```go\ntype EncrypterOpts struct{}\n```\n\n```go\ntype HashOpts struct{}\n```\n\n```go\nfunc (HashOpts) Algorithm() string\n```\n\n```go\ntype KeyDerivOpts struct {\n\tEphemeralValue bool\n}\n```\n\n```go\nfunc (*KeyDerivOpts) Algorithm() string\n```\n\n```go\nfunc (o *KeyDerivOpts) Ephemeral() bool\n```\n\n```go\ntype KeyGenOpts struct {\n\tEphemeralValue bool\n}\n```\n\n```go\nfunc (*KeyGenOpts) Algorithm() string\n```\n\n```go\nfunc (o *KeyGenOpts) Ephemeral() bool\n```\n\n```go\ntype KeyImportOpts struct{}\n```\n\n```go\nfunc (*KeyImportOpts) Algorithm() string\n```\n\n```go\nfunc (*KeyImportOpts) Ephemeral() bool\n```\n\n```go\ntype KeyStore struct {\n\tGetKeyValue bccsp.Key\n\tGetKeyErr   error\n\tStoreKeyErr error\n}\n```\n\n```go\nfunc (ks *KeyStore) GetKey(ski []byte) (bccsp.Key, error)\n```\n\n```go\nfunc (*KeyStore) ReadOnly() bool\n```\n\n```go\nfunc (ks *KeyStore) StoreKey(k bccsp.Key) error\n```\n\n```go\ntype MockBCCSP struct {\n\tSignArgKey    bccsp.Key\n\tSignDigestArg []byte\n\tSignOptsArg   bccsp.SignerOpts\n\n\tSignValue []byte\n\tSignErr   error\n\n\tVerifyValue bool\n\tVerifyErr   error\n\n\tExpectedSig []byte\n\n\tKeyImportValue bccsp.Key\n\tKeyImportErr   error\n\n\tEncryptError error\n\tDecryptError error\n\n\tHashVal []byte\n\tHashErr error\n}\n```\n\n```go\nfunc (m *MockBCCSP) Decrypt(k bccsp.Key, ciphertext []byte, opts bccsp.DecrypterOpts) ([]byte, error)\n```\n\n```go\nfunc (m *MockBCCSP) Encrypt(k bccsp.Key, plaintext []byte, opts bccsp.EncrypterOpts) ([]byte, error)\n```\n\n```go\nfunc (*MockBCCSP) GetHash(opts bccsp.HashOpts) (hash.Hash, error)\n```\n\n```go\nfunc (*MockBCCSP) GetKey(ski []byte) (bccsp.Key, error)\n```\n\n```go\nfunc (m *MockBCCSP) Hash(msg []byte, opts bccsp.HashOpts) ([]byte, error)\n```\n\n```go\nfunc (*MockBCCSP) KeyDeriv(k bccsp.Key, opts bccsp.KeyDerivOpts) (bccsp.Key, error)\n```\n\n```go\nfunc (*MockBCCSP) KeyGen(opts bccsp.KeyGenOpts) (bccsp.Key, error)\n```\n\n```go\nfunc (m *MockBCCSP) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (bccsp.Key, error)\n```\n\n```go\nfunc (b *MockBCCSP) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) ([]byte, error)\n```\n\n```go\nfunc (b *MockBCCSP) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (bool, error)\n```\n\n```go\ntype MockKey struct {\n\tBytesValue []byte\n\tBytesErr   error\n\tSymm       bool\n\tPK         bccsp.Key\n\tPKErr      error\n\tPvt        bool\n}\n```\n\n```go\nfunc (m *MockKey) Bytes() ([]byte, error)\n```\n\n```go\nfunc (m *MockKey) Private() bool\n```\n\n```go\nfunc (m *MockKey) PublicKey() (bccsp.Key, error)\n```\n\n```go\nfunc (*MockKey) SKI() []byte\n```\n\n```go\nfunc (m *MockKey) Symmetric() bool\n```\n\n```go\ntype SignerOpts struct {\n\tHashFuncValue crypto.Hash\n}\n```\n\n```go\nfunc (o *SignerOpts) HashFunc() crypto.Hash\n```\n\n","path":"github.com/eric-erki/https-hyperledger.org/bccsp/mocks","name":"mocks","synopsis":"","isRedistributable":true}
