func (m *MockKeystore) KeyManager() kms.KeyManager {
	return m.KeyManagerValue
}
KeyManager returns KeyManager instance.
package keystore
import (
	"github.com/google/tink/go/keyset"
	"github.com/hyperledger/aries-framework-go/pkg/kms"
	mockkms "github.com/hyperledger/aries-framework-go/pkg/mock/kms"
)
type MockKeystore struct {
	CreateKeyValue             string
	ExportKeyValue             []byte
	CreateAndExportKeyID       string
	CreateAndExportPubKeyValue []byte
	ImportKeyID                string
	GetKeyHandleValue          *keyset.Handle
	KeyManagerValue            *mockkms.KeyManager
	CreateKeyErr               error
	ExportKeyErr               error
	CreateAndExportKeyErr      error
	ImportKeyErr               error
	GetKeyHandleErr            error
}
func (m *MockKeystore) CreateKey(kt kms.KeyType) (string, error) {
	if m.CreateKeyErr != nil {
		return "", m.CreateKeyErr
	}
	return m.CreateKeyValue, nil
}
func (m *MockKeystore) ExportKey(keyID string) ([]byte, error) {
	if m.ExportKeyErr != nil {
		return nil, m.ExportKeyErr
	}
	return m.ExportKeyValue, nil
}
func (m *MockKeystore) CreateAndExportKey(kt kms.KeyType) (string, []byte, error) {
	if m.CreateAndExportKeyErr != nil {
		return "", nil, m.CreateAndExportKeyErr
	}
	return m.CreateAndExportKeyID, m.CreateAndExportPubKeyValue, nil
}
func (m *MockKeystore) ImportKey(der []byte, kt kms.KeyType, kid string) (string, error) {
	if m.ImportKeyErr != nil {
		return "", m.ImportKeyErr
	}
	return m.ImportKeyID, nil
}
func (m *MockKeystore) GetKeyHandle(keyID string) (interface{}, error) {
	if m.GetKeyHandleErr != nil {
		return nil, m.GetKeyHandleErr
	}
	return m.GetKeyHandleValue, nil
}