2020-03-23 06:06:44 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: crypto.go
|
2023-11-22 10:56:43 +00:00
|
|
|
//
|
|
|
|
// Generated by this command:
|
|
|
|
//
|
|
|
|
// mockgen -source crypto.go -destination ./crypto_mock.go -package crypto
|
|
|
|
//
|
2024-04-05 09:35:49 +00:00
|
|
|
|
2020-03-23 06:06:44 +00:00
|
|
|
// Package crypto is a generated GoMock package.
|
|
|
|
package crypto
|
|
|
|
|
|
|
|
import (
|
|
|
|
reflect "reflect"
|
2023-11-22 10:56:43 +00:00
|
|
|
|
|
|
|
gomock "go.uber.org/mock/gomock"
|
2020-03-23 06:06:44 +00:00
|
|
|
)
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// MockEncryptionAlgorithm is a mock of EncryptionAlgorithm interface.
|
2020-03-30 07:28:00 +00:00
|
|
|
type MockEncryptionAlgorithm struct {
|
2020-03-23 06:06:44 +00:00
|
|
|
ctrl *gomock.Controller
|
2020-03-30 07:28:00 +00:00
|
|
|
recorder *MockEncryptionAlgorithmMockRecorder
|
2020-03-23 06:06:44 +00:00
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// MockEncryptionAlgorithmMockRecorder is the mock recorder for MockEncryptionAlgorithm.
|
2020-03-30 07:28:00 +00:00
|
|
|
type MockEncryptionAlgorithmMockRecorder struct {
|
|
|
|
mock *MockEncryptionAlgorithm
|
2020-03-23 06:06:44 +00:00
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// NewMockEncryptionAlgorithm creates a new mock instance.
|
2020-03-30 07:28:00 +00:00
|
|
|
func NewMockEncryptionAlgorithm(ctrl *gomock.Controller) *MockEncryptionAlgorithm {
|
|
|
|
mock := &MockEncryptionAlgorithm{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockEncryptionAlgorithmMockRecorder{mock}
|
2020-03-23 06:06:44 +00:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
2020-03-30 07:28:00 +00:00
|
|
|
func (m *MockEncryptionAlgorithm) EXPECT() *MockEncryptionAlgorithmMockRecorder {
|
2020-03-23 06:06:44 +00:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// Algorithm mocks base method.
|
2020-03-30 07:28:00 +00:00
|
|
|
func (m *MockEncryptionAlgorithm) Algorithm() string {
|
2020-03-23 06:06:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Algorithm")
|
|
|
|
ret0, _ := ret[0].(string)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// Algorithm indicates an expected call of Algorithm.
|
2020-03-30 07:28:00 +00:00
|
|
|
func (mr *MockEncryptionAlgorithmMockRecorder) Algorithm() *gomock.Call {
|
2020-03-23 06:06:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2020-03-30 07:28:00 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Algorithm", reflect.TypeOf((*MockEncryptionAlgorithm)(nil).Algorithm))
|
2020-03-23 06:06:44 +00:00
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// Decrypt mocks base method.
|
|
|
|
func (m *MockEncryptionAlgorithm) Decrypt(hashed []byte, keyID string) ([]byte, error) {
|
2020-03-23 06:06:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
2023-11-22 10:56:43 +00:00
|
|
|
ret := m.ctrl.Call(m, "Decrypt", hashed, keyID)
|
|
|
|
ret0, _ := ret[0].([]byte)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// Decrypt indicates an expected call of Decrypt.
|
|
|
|
func (mr *MockEncryptionAlgorithmMockRecorder) Decrypt(hashed, keyID any) *gomock.Call {
|
|
|
|
mr.mock.ctrl.T.Helper()
|
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Decrypt", reflect.TypeOf((*MockEncryptionAlgorithm)(nil).Decrypt), hashed, keyID)
|
|
|
|
}
|
|
|
|
|
|
|
|
// DecryptString mocks base method.
|
|
|
|
func (m *MockEncryptionAlgorithm) DecryptString(hashed []byte, keyID string) (string, error) {
|
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "DecryptString", hashed, keyID)
|
2020-03-23 06:06:44 +00:00
|
|
|
ret0, _ := ret[0].(string)
|
2023-11-22 10:56:43 +00:00
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
2020-03-23 06:06:44 +00:00
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// DecryptString indicates an expected call of DecryptString.
|
|
|
|
func (mr *MockEncryptionAlgorithmMockRecorder) DecryptString(hashed, keyID any) *gomock.Call {
|
2020-03-23 06:06:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-11-22 10:56:43 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptString", reflect.TypeOf((*MockEncryptionAlgorithm)(nil).DecryptString), hashed, keyID)
|
2020-03-23 06:06:44 +00:00
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// DecryptionKeyIDs mocks base method.
|
2020-03-30 07:28:00 +00:00
|
|
|
func (m *MockEncryptionAlgorithm) DecryptionKeyIDs() []string {
|
2020-03-23 06:06:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "DecryptionKeyIDs")
|
|
|
|
ret0, _ := ret[0].([]string)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// DecryptionKeyIDs indicates an expected call of DecryptionKeyIDs.
|
2020-03-30 07:28:00 +00:00
|
|
|
func (mr *MockEncryptionAlgorithmMockRecorder) DecryptionKeyIDs() *gomock.Call {
|
2020-03-23 06:06:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2020-03-30 07:28:00 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptionKeyIDs", reflect.TypeOf((*MockEncryptionAlgorithm)(nil).DecryptionKeyIDs))
|
2020-03-23 06:06:44 +00:00
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// Encrypt mocks base method.
|
2020-03-30 07:28:00 +00:00
|
|
|
func (m *MockEncryptionAlgorithm) Encrypt(value []byte) ([]byte, error) {
|
2020-03-23 06:06:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
|
|
|
ret := m.ctrl.Call(m, "Encrypt", value)
|
|
|
|
ret0, _ := ret[0].([]byte)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// Encrypt indicates an expected call of Encrypt.
|
|
|
|
func (mr *MockEncryptionAlgorithmMockRecorder) Encrypt(value any) *gomock.Call {
|
2020-03-23 06:06:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2020-03-30 07:28:00 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Encrypt", reflect.TypeOf((*MockEncryptionAlgorithm)(nil).Encrypt), value)
|
2020-03-23 06:06:44 +00:00
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// EncryptionKeyID mocks base method.
|
|
|
|
func (m *MockEncryptionAlgorithm) EncryptionKeyID() string {
|
2020-03-23 06:06:44 +00:00
|
|
|
m.ctrl.T.Helper()
|
2023-11-22 10:56:43 +00:00
|
|
|
ret := m.ctrl.Call(m, "EncryptionKeyID")
|
2020-03-23 06:06:44 +00:00
|
|
|
ret0, _ := ret[0].(string)
|
2023-11-22 10:56:43 +00:00
|
|
|
return ret0
|
2020-03-23 06:06:44 +00:00
|
|
|
}
|
|
|
|
|
2023-11-22 10:56:43 +00:00
|
|
|
// EncryptionKeyID indicates an expected call of EncryptionKeyID.
|
|
|
|
func (mr *MockEncryptionAlgorithmMockRecorder) EncryptionKeyID() *gomock.Call {
|
2020-03-23 06:06:44 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2023-11-22 10:56:43 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncryptionKeyID", reflect.TypeOf((*MockEncryptionAlgorithm)(nil).EncryptionKeyID))
|
2020-03-23 06:06:44 +00:00
|
|
|
}
|