crypto

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package crypto is a generated GoMock package.

Package crypto is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCryptor

type MockCryptor struct {
	// contains filtered or unexported fields
}

MockCryptor is a mock of Cryptor interface.

func NewMockCryptor

func NewMockCryptor(ctrl *gomock.Controller) *MockCryptor

NewMockCryptor creates a new mock instance.

func (*MockCryptor) Decrypt

func (m *MockCryptor) Decrypt(k, cipherText []byte) ([]byte, error)

Decrypt mocks base method.

func (*MockCryptor) EXPECT

func (m *MockCryptor) EXPECT() *MockCryptorMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCryptor) Encrypt

func (m *MockCryptor) Encrypt(k, plaintext []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

type MockCryptorMockRecorder

type MockCryptorMockRecorder struct {
	// contains filtered or unexported fields
}

MockCryptorMockRecorder is the mock recorder for MockCryptor.

func (*MockCryptorMockRecorder) Decrypt

func (mr *MockCryptorMockRecorder) Decrypt(k, cipherText interface{}) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockCryptorMockRecorder) Encrypt

func (mr *MockCryptorMockRecorder) Encrypt(k, plaintext, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

type MockDecKey

type MockDecKey struct {
	// contains filtered or unexported fields
}

MockDecKey is a mock of DecKey interface.

func NewMockDecKey

func NewMockDecKey(ctrl *gomock.Controller) *MockDecKey

NewMockDecKey creates a new mock instance.

func (*MockDecKey) Bytes

func (m *MockDecKey) Bytes() []byte

Bytes mocks base method.

func (*MockDecKey) Decrypt

func (m *MockDecKey) Decrypt(cipher []byte) ([]byte, error)

Decrypt mocks base method.

func (*MockDecKey) Destroy

func (m *MockDecKey) Destroy()

Destroy mocks base method.

func (*MockDecKey) EXPECT

func (m *MockDecKey) EXPECT() *MockDecKeyMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDecKey) Encrypt

func (m *MockDecKey) Encrypt(msg []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

func (*MockDecKey) GetKeyInfo

func (m *MockDecKey) GetKeyInfo() int

GetKeyInfo mocks base method.

type MockDecKeyMockRecorder

type MockDecKeyMockRecorder struct {
	// contains filtered or unexported fields
}

MockDecKeyMockRecorder is the mock recorder for MockDecKey.

func (*MockDecKeyMockRecorder) Bytes

func (mr *MockDecKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockDecKeyMockRecorder) Decrypt

func (mr *MockDecKeyMockRecorder) Decrypt(cipher interface{}) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockDecKeyMockRecorder) Destroy

func (mr *MockDecKeyMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockDecKeyMockRecorder) Encrypt

func (mr *MockDecKeyMockRecorder) Encrypt(msg, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

func (*MockDecKeyMockRecorder) GetKeyInfo

func (mr *MockDecKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

type MockDecryptor

type MockDecryptor struct {
	// contains filtered or unexported fields
}

MockDecryptor is a mock of Decryptor interface.

func NewMockDecryptor

func NewMockDecryptor(ctrl *gomock.Controller) *MockDecryptor

NewMockDecryptor creates a new mock instance.

func (*MockDecryptor) Decrypt

func (m *MockDecryptor) Decrypt(k, cipherText []byte) ([]byte, error)

Decrypt mocks base method.

func (*MockDecryptor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockDecryptorMockRecorder

type MockDecryptorMockRecorder struct {
	// contains filtered or unexported fields
}

MockDecryptorMockRecorder is the mock recorder for MockDecryptor.

func (*MockDecryptorMockRecorder) Decrypt

func (mr *MockDecryptorMockRecorder) Decrypt(k, cipherText interface{}) *gomock.Call

Decrypt indicates an expected call of Decrypt.

type MockEncKey

type MockEncKey struct {
	// contains filtered or unexported fields
}

MockEncKey is a mock of EncKey interface.

func NewMockEncKey

func NewMockEncKey(ctrl *gomock.Controller) *MockEncKey

NewMockEncKey creates a new mock instance.

func (*MockEncKey) Bytes

func (m *MockEncKey) Bytes() []byte

Bytes mocks base method.

func (*MockEncKey) EXPECT

func (m *MockEncKey) EXPECT() *MockEncKeyMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEncKey) Encrypt

func (m *MockEncKey) Encrypt(msg []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

func (*MockEncKey) GetKeyInfo

func (m *MockEncKey) GetKeyInfo() int

GetKeyInfo mocks base method.

type MockEncKeyMockRecorder

type MockEncKeyMockRecorder struct {
	// contains filtered or unexported fields
}

MockEncKeyMockRecorder is the mock recorder for MockEncKey.

func (*MockEncKeyMockRecorder) Bytes

func (mr *MockEncKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockEncKeyMockRecorder) Encrypt

func (mr *MockEncKeyMockRecorder) Encrypt(msg, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

func (*MockEncKeyMockRecorder) GetKeyInfo

func (mr *MockEncKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

type MockEncryptor

type MockEncryptor struct {
	// contains filtered or unexported fields
}

MockEncryptor is a mock of Encryptor interface.

func NewMockEncryptor

func NewMockEncryptor(ctrl *gomock.Controller) *MockEncryptor

NewMockEncryptor creates a new mock instance.

func (*MockEncryptor) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEncryptor) Encrypt

func (m *MockEncryptor) Encrypt(k, plaintext []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

type MockEncryptorMockRecorder

type MockEncryptorMockRecorder struct {
	// contains filtered or unexported fields
}

MockEncryptorMockRecorder is the mock recorder for MockEncryptor.

func (*MockEncryptorMockRecorder) Encrypt

func (mr *MockEncryptorMockRecorder) Encrypt(k, plaintext, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

type MockEngine

type MockEngine struct {
	// contains filtered or unexported fields
}

MockEngine is a mock of Engine interface.

func NewMockEngine

func NewMockEngine(ctrl *gomock.Controller) *MockEngine

NewMockEngine creates a new mock instance.

func (*MockEngine) CreateDecKey

func (m *MockEngine) CreateDecKey(persistent bool, mode int) ([]byte, crypto.DecKey, error)

CreateDecKey mocks base method.

func (*MockEngine) CreateSignKey

func (m *MockEngine) CreateSignKey(persistent bool, mode int) ([]byte, crypto.SignKey, error)

CreateSignKey mocks base method.

func (*MockEngine) EXPECT

func (m *MockEngine) EXPECT() *MockEngineMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockEngine) GetDecKey

func (m *MockEngine) GetDecKey(key []byte, mode int) (crypto.DecKey, error)

GetDecKey mocks base method.

func (*MockEngine) GetEncKey

func (m *MockEngine) GetEncKey(key []byte, mode int) (crypto.EncKey, error)

GetEncKey mocks base method.

func (*MockEngine) GetHash

func (m *MockEngine) GetHash(mode int) (crypto.Hasher, error)

GetHash mocks base method.

func (*MockEngine) GetLevel

func (m *MockEngine) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockEngine) GetSecretKey

func (m *MockEngine) GetSecretKey(mode int, pwd, key []byte) (crypto.SecretKey, error)

GetSecretKey mocks base method.

func (*MockEngine) GetSignKey

func (m *MockEngine) GetSignKey(key []byte, mode int) (crypto.SignKey, error)

GetSignKey mocks base method.

func (*MockEngine) GetVerifyKey

func (m *MockEngine) GetVerifyKey(key []byte, mode int) (crypto.VerifyKey, error)

GetVerifyKey mocks base method.

func (*MockEngine) ImportDecKey

func (m *MockEngine) ImportDecKey(key []byte, mode int) ([]byte, error)

ImportDecKey mocks base method.

func (*MockEngine) ImportSignKey

func (m *MockEngine) ImportSignKey(key []byte, mode int) ([]byte, error)

ImportSignKey mocks base method.

func (*MockEngine) Rander

func (m *MockEngine) Rander() (io.Reader, error)

Rander mocks base method.

type MockEngineMockRecorder

type MockEngineMockRecorder struct {
	// contains filtered or unexported fields
}

MockEngineMockRecorder is the mock recorder for MockEngine.

func (*MockEngineMockRecorder) CreateDecKey

func (mr *MockEngineMockRecorder) CreateDecKey(persistent, mode interface{}) *gomock.Call

CreateDecKey indicates an expected call of CreateDecKey.

func (*MockEngineMockRecorder) CreateSignKey

func (mr *MockEngineMockRecorder) CreateSignKey(persistent, mode interface{}) *gomock.Call

CreateSignKey indicates an expected call of CreateSignKey.

func (*MockEngineMockRecorder) GetDecKey

func (mr *MockEngineMockRecorder) GetDecKey(key, mode interface{}) *gomock.Call

GetDecKey indicates an expected call of GetDecKey.

func (*MockEngineMockRecorder) GetEncKey

func (mr *MockEngineMockRecorder) GetEncKey(key, mode interface{}) *gomock.Call

GetEncKey indicates an expected call of GetEncKey.

func (*MockEngineMockRecorder) GetHash

func (mr *MockEngineMockRecorder) GetHash(mode interface{}) *gomock.Call

GetHash indicates an expected call of GetHash.

func (*MockEngineMockRecorder) GetLevel

func (mr *MockEngineMockRecorder) GetLevel() *gomock.Call

GetLevel indicates an expected call of GetLevel.

func (*MockEngineMockRecorder) GetSecretKey

func (mr *MockEngineMockRecorder) GetSecretKey(mode, pwd, key interface{}) *gomock.Call

GetSecretKey indicates an expected call of GetSecretKey.

func (*MockEngineMockRecorder) GetSignKey

func (mr *MockEngineMockRecorder) GetSignKey(key, mode interface{}) *gomock.Call

GetSignKey indicates an expected call of GetSignKey.

func (*MockEngineMockRecorder) GetVerifyKey

func (mr *MockEngineMockRecorder) GetVerifyKey(key, mode interface{}) *gomock.Call

GetVerifyKey indicates an expected call of GetVerifyKey.

func (*MockEngineMockRecorder) ImportDecKey

func (mr *MockEngineMockRecorder) ImportDecKey(key, mode interface{}) *gomock.Call

ImportDecKey indicates an expected call of ImportDecKey.

func (*MockEngineMockRecorder) ImportSignKey

func (mr *MockEngineMockRecorder) ImportSignKey(key, mode interface{}) *gomock.Call

ImportSignKey indicates an expected call of ImportSignKey.

func (*MockEngineMockRecorder) Rander

func (mr *MockEngineMockRecorder) Rander() *gomock.Call

Rander indicates an expected call of Rander.

type MockFlagReader

type MockFlagReader struct {
	// contains filtered or unexported fields
}

MockFlagReader is a mock of FlagReader interface.

func NewMockFlagReader

func NewMockFlagReader(ctrl *gomock.Controller) *MockFlagReader

NewMockFlagReader creates a new mock instance.

func (*MockFlagReader) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockFlagReader) GetFlag

func (m *MockFlagReader) GetFlag() int

GetFlag mocks base method.

func (*MockFlagReader) Read

func (m *MockFlagReader) Read(p []byte) (int, error)

Read mocks base method.

type MockFlagReaderMockRecorder

type MockFlagReaderMockRecorder struct {
	// contains filtered or unexported fields
}

MockFlagReaderMockRecorder is the mock recorder for MockFlagReader.

func (*MockFlagReaderMockRecorder) GetFlag

func (mr *MockFlagReaderMockRecorder) GetFlag() *gomock.Call

GetFlag indicates an expected call of GetFlag.

func (*MockFlagReaderMockRecorder) Read

func (mr *MockFlagReaderMockRecorder) Read(p interface{}) *gomock.Call

Read indicates an expected call of Read.

type MockHasher

type MockHasher struct {
	// contains filtered or unexported fields
}

MockHasher is a mock of Hasher interface.

func NewMockHasher

func NewMockHasher(ctrl *gomock.Controller) *MockHasher

NewMockHasher creates a new mock instance.

func (*MockHasher) BatchHash

func (m *MockHasher) BatchHash(msg [][]byte) ([]byte, error)

BatchHash mocks base method.

func (*MockHasher) BlockSize

func (m *MockHasher) BlockSize() int

BlockSize mocks base method.

func (*MockHasher) EXPECT

func (m *MockHasher) EXPECT() *MockHasherMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockHasher) Hash

func (m *MockHasher) Hash(msg []byte) ([]byte, error)

Hash mocks base method.

func (*MockHasher) Reset

func (m *MockHasher) Reset()

Reset mocks base method.

func (*MockHasher) Size

func (m *MockHasher) Size() int

Size mocks base method.

func (*MockHasher) Sum

func (m *MockHasher) Sum(b []byte) []byte

Sum mocks base method.

func (*MockHasher) Write

func (m *MockHasher) Write(p []byte) (int, error)

Write mocks base method.

type MockHasherMockRecorder

type MockHasherMockRecorder struct {
	// contains filtered or unexported fields
}

MockHasherMockRecorder is the mock recorder for MockHasher.

func (*MockHasherMockRecorder) BatchHash

func (mr *MockHasherMockRecorder) BatchHash(msg interface{}) *gomock.Call

BatchHash indicates an expected call of BatchHash.

func (*MockHasherMockRecorder) BlockSize

func (mr *MockHasherMockRecorder) BlockSize() *gomock.Call

BlockSize indicates an expected call of BlockSize.

func (*MockHasherMockRecorder) Hash

func (mr *MockHasherMockRecorder) Hash(msg interface{}) *gomock.Call

Hash indicates an expected call of Hash.

func (*MockHasherMockRecorder) Reset

func (mr *MockHasherMockRecorder) Reset() *gomock.Call

Reset indicates an expected call of Reset.

func (*MockHasherMockRecorder) Size

func (mr *MockHasherMockRecorder) Size() *gomock.Call

Size indicates an expected call of Size.

func (*MockHasherMockRecorder) Sum

func (mr *MockHasherMockRecorder) Sum(b interface{}) *gomock.Call

Sum indicates an expected call of Sum.

func (*MockHasherMockRecorder) Write

func (mr *MockHasherMockRecorder) Write(p interface{}) *gomock.Call

Write indicates an expected call of Write.

type MockKey

type MockKey struct {
	// contains filtered or unexported fields
}

MockKey is a mock of Key interface.

func NewMockKey

func NewMockKey(ctrl *gomock.Controller) *MockKey

NewMockKey creates a new mock instance.

func (*MockKey) Bytes

func (m *MockKey) Bytes() ([]byte, error)

Bytes mocks base method.

func (*MockKey) EXPECT

func (m *MockKey) EXPECT() *MockKeyMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockKey) FromBytes

func (m *MockKey) FromBytes(k []byte, opt int) error

FromBytes mocks base method.

type MockKeyMockRecorder

type MockKeyMockRecorder struct {
	// contains filtered or unexported fields
}

MockKeyMockRecorder is the mock recorder for MockKey.

func (*MockKeyMockRecorder) Bytes

func (mr *MockKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockKeyMockRecorder) FromBytes

func (mr *MockKeyMockRecorder) FromBytes(k, opt interface{}) *gomock.Call

FromBytes indicates an expected call of FromBytes.

type MockLevel

type MockLevel struct {
	// contains filtered or unexported fields
}

MockLevel is a mock of Level interface.

func NewMockLevel

func NewMockLevel(ctrl *gomock.Controller) *MockLevel

NewMockLevel creates a new mock instance.

func (*MockLevel) EXPECT

func (m *MockLevel) EXPECT() *MockLevelMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLevel) GetLevel

func (m *MockLevel) GetLevel() ([]int, uint8)

GetLevel mocks base method.

type MockLevelMockRecorder

type MockLevelMockRecorder struct {
	// contains filtered or unexported fields
}

MockLevelMockRecorder is the mock recorder for MockLevel.

func (*MockLevelMockRecorder) GetLevel

func (mr *MockLevelMockRecorder) GetLevel() *gomock.Call

GetLevel indicates an expected call of GetLevel.

type MockPluginCreateDecKeyFunc

type MockPluginCreateDecKeyFunc struct {
	// contains filtered or unexported fields
}

MockPluginCreateDecKeyFunc is a mock of PluginCreateDecKeyFunc interface.

func NewMockPluginCreateDecKeyFunc

func NewMockPluginCreateDecKeyFunc(ctrl *gomock.Controller) *MockPluginCreateDecKeyFunc

NewMockPluginCreateDecKeyFunc creates a new mock instance.

func (*MockPluginCreateDecKeyFunc) CreateDecKey

func (m *MockPluginCreateDecKeyFunc) CreateDecKey(persistent bool, mode int) ([]byte, crypto.DecKey, error)

CreateDecKey mocks base method.

func (*MockPluginCreateDecKeyFunc) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPluginCreateDecKeyFunc) GetLevel

func (m *MockPluginCreateDecKeyFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

type MockPluginCreateDecKeyFuncMockRecorder

type MockPluginCreateDecKeyFuncMockRecorder struct {
	// contains filtered or unexported fields
}

MockPluginCreateDecKeyFuncMockRecorder is the mock recorder for MockPluginCreateDecKeyFunc.

func (*MockPluginCreateDecKeyFuncMockRecorder) CreateDecKey

func (mr *MockPluginCreateDecKeyFuncMockRecorder) CreateDecKey(persistent, mode interface{}) *gomock.Call

CreateDecKey indicates an expected call of CreateDecKey.

func (*MockPluginCreateDecKeyFuncMockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

type MockPluginCreateSignFunc

type MockPluginCreateSignFunc struct {
	// contains filtered or unexported fields
}

MockPluginCreateSignFunc is a mock of PluginCreateSignFunc interface.

func NewMockPluginCreateSignFunc

func NewMockPluginCreateSignFunc(ctrl *gomock.Controller) *MockPluginCreateSignFunc

NewMockPluginCreateSignFunc creates a new mock instance.

func (*MockPluginCreateSignFunc) CreateSignKey

func (m *MockPluginCreateSignFunc) CreateSignKey(persistent bool, mode int) ([]byte, crypto.SignKey, error)

CreateSignKey mocks base method.

func (*MockPluginCreateSignFunc) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPluginCreateSignFunc) GetLevel

func (m *MockPluginCreateSignFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

type MockPluginCreateSignFuncMockRecorder

type MockPluginCreateSignFuncMockRecorder struct {
	// contains filtered or unexported fields
}

MockPluginCreateSignFuncMockRecorder is the mock recorder for MockPluginCreateSignFunc.

func (*MockPluginCreateSignFuncMockRecorder) CreateSignKey

func (mr *MockPluginCreateSignFuncMockRecorder) CreateSignKey(persistent, mode interface{}) *gomock.Call

CreateSignKey indicates an expected call of CreateSignKey.

func (*MockPluginCreateSignFuncMockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

type MockPluginCryptFunc

type MockPluginCryptFunc struct {
	// contains filtered or unexported fields
}

MockPluginCryptFunc is a mock of PluginCryptFunc interface.

func NewMockPluginCryptFunc

func NewMockPluginCryptFunc(ctrl *gomock.Controller) *MockPluginCryptFunc

NewMockPluginCryptFunc creates a new mock instance.

func (*MockPluginCryptFunc) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPluginCryptFunc) GetLevel

func (m *MockPluginCryptFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginCryptFunc) GetSecretKey

func (m *MockPluginCryptFunc) GetSecretKey(mode int, pwd, key []byte) (crypto.SecretKey, error)

GetSecretKey mocks base method.

type MockPluginCryptFuncMockRecorder

type MockPluginCryptFuncMockRecorder struct {
	// contains filtered or unexported fields
}

MockPluginCryptFuncMockRecorder is the mock recorder for MockPluginCryptFunc.

func (*MockPluginCryptFuncMockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

func (*MockPluginCryptFuncMockRecorder) GetSecretKey

func (mr *MockPluginCryptFuncMockRecorder) GetSecretKey(mode, pwd, key interface{}) *gomock.Call

GetSecretKey indicates an expected call of GetSecretKey.

type MockPluginDecKeyFunc

type MockPluginDecKeyFunc struct {
	// contains filtered or unexported fields
}

MockPluginDecKeyFunc is a mock of PluginDecKeyFunc interface.

func NewMockPluginDecKeyFunc

func NewMockPluginDecKeyFunc(ctrl *gomock.Controller) *MockPluginDecKeyFunc

NewMockPluginDecKeyFunc creates a new mock instance.

func (*MockPluginDecKeyFunc) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPluginDecKeyFunc) GetDecKey

func (m *MockPluginDecKeyFunc) GetDecKey(key []byte, mode int) (crypto.DecKey, error)

GetDecKey mocks base method.

func (*MockPluginDecKeyFunc) GetLevel

func (m *MockPluginDecKeyFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginDecKeyFunc) ImportDecKey

func (m *MockPluginDecKeyFunc) ImportDecKey(key []byte, mode int) ([]byte, error)

ImportDecKey mocks base method.

type MockPluginDecKeyFuncMockRecorder

type MockPluginDecKeyFuncMockRecorder struct {
	// contains filtered or unexported fields
}

MockPluginDecKeyFuncMockRecorder is the mock recorder for MockPluginDecKeyFunc.

func (*MockPluginDecKeyFuncMockRecorder) GetDecKey

func (mr *MockPluginDecKeyFuncMockRecorder) GetDecKey(key, mode interface{}) *gomock.Call

GetDecKey indicates an expected call of GetDecKey.

func (*MockPluginDecKeyFuncMockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

func (*MockPluginDecKeyFuncMockRecorder) ImportDecKey

func (mr *MockPluginDecKeyFuncMockRecorder) ImportDecKey(key, mode interface{}) *gomock.Call

ImportDecKey indicates an expected call of ImportDecKey.

type MockPluginEncKeyFunc

type MockPluginEncKeyFunc struct {
	// contains filtered or unexported fields
}

MockPluginEncKeyFunc is a mock of PluginEncKeyFunc interface.

func NewMockPluginEncKeyFunc

func NewMockPluginEncKeyFunc(ctrl *gomock.Controller) *MockPluginEncKeyFunc

NewMockPluginEncKeyFunc creates a new mock instance.

func (*MockPluginEncKeyFunc) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPluginEncKeyFunc) GetEncKey

func (m *MockPluginEncKeyFunc) GetEncKey(key []byte, mode int) (crypto.EncKey, error)

GetEncKey mocks base method.

func (*MockPluginEncKeyFunc) GetLevel

func (m *MockPluginEncKeyFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

type MockPluginEncKeyFuncMockRecorder

type MockPluginEncKeyFuncMockRecorder struct {
	// contains filtered or unexported fields
}

MockPluginEncKeyFuncMockRecorder is the mock recorder for MockPluginEncKeyFunc.

func (*MockPluginEncKeyFuncMockRecorder) GetEncKey

func (mr *MockPluginEncKeyFuncMockRecorder) GetEncKey(key, mode interface{}) *gomock.Call

GetEncKey indicates an expected call of GetEncKey.

func (*MockPluginEncKeyFuncMockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

type MockPluginHashFunc

type MockPluginHashFunc struct {
	// contains filtered or unexported fields
}

MockPluginHashFunc is a mock of PluginHashFunc interface.

func NewMockPluginHashFunc

func NewMockPluginHashFunc(ctrl *gomock.Controller) *MockPluginHashFunc

NewMockPluginHashFunc creates a new mock instance.

func (*MockPluginHashFunc) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPluginHashFunc) GetHash

func (m *MockPluginHashFunc) GetHash(mode int) (crypto.Hasher, error)

GetHash mocks base method.

func (*MockPluginHashFunc) GetLevel

func (m *MockPluginHashFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

type MockPluginHashFuncMockRecorder

type MockPluginHashFuncMockRecorder struct {
	// contains filtered or unexported fields
}

MockPluginHashFuncMockRecorder is the mock recorder for MockPluginHashFunc.

func (*MockPluginHashFuncMockRecorder) GetHash

func (mr *MockPluginHashFuncMockRecorder) GetHash(mode interface{}) *gomock.Call

GetHash indicates an expected call of GetHash.

func (*MockPluginHashFuncMockRecorder) GetLevel

func (mr *MockPluginHashFuncMockRecorder) GetLevel() *gomock.Call

GetLevel indicates an expected call of GetLevel.

type MockPluginRandomFunc

type MockPluginRandomFunc struct {
	// contains filtered or unexported fields
}

MockPluginRandomFunc is a mock of PluginRandomFunc interface.

func NewMockPluginRandomFunc

func NewMockPluginRandomFunc(ctrl *gomock.Controller) *MockPluginRandomFunc

NewMockPluginRandomFunc creates a new mock instance.

func (*MockPluginRandomFunc) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPluginRandomFunc) GetLevel

func (m *MockPluginRandomFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginRandomFunc) Rander

func (m *MockPluginRandomFunc) Rander() (io.Reader, error)

Rander mocks base method.

type MockPluginRandomFuncMockRecorder

type MockPluginRandomFuncMockRecorder struct {
	// contains filtered or unexported fields
}

MockPluginRandomFuncMockRecorder is the mock recorder for MockPluginRandomFunc.

func (*MockPluginRandomFuncMockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

func (*MockPluginRandomFuncMockRecorder) Rander

Rander indicates an expected call of Rander.

type MockPluginSignFunc

type MockPluginSignFunc struct {
	// contains filtered or unexported fields
}

MockPluginSignFunc is a mock of PluginSignFunc interface.

func NewMockPluginSignFunc

func NewMockPluginSignFunc(ctrl *gomock.Controller) *MockPluginSignFunc

NewMockPluginSignFunc creates a new mock instance.

func (*MockPluginSignFunc) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPluginSignFunc) GetLevel

func (m *MockPluginSignFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginSignFunc) GetSignKey

func (m *MockPluginSignFunc) GetSignKey(key []byte, mode int) (crypto.SignKey, error)

GetSignKey mocks base method.

func (*MockPluginSignFunc) ImportSignKey

func (m *MockPluginSignFunc) ImportSignKey(key []byte, mode int) ([]byte, error)

ImportSignKey mocks base method.

type MockPluginSignFuncMockRecorder

type MockPluginSignFuncMockRecorder struct {
	// contains filtered or unexported fields
}

MockPluginSignFuncMockRecorder is the mock recorder for MockPluginSignFunc.

func (*MockPluginSignFuncMockRecorder) GetLevel

func (mr *MockPluginSignFuncMockRecorder) GetLevel() *gomock.Call

GetLevel indicates an expected call of GetLevel.

func (*MockPluginSignFuncMockRecorder) GetSignKey

func (mr *MockPluginSignFuncMockRecorder) GetSignKey(key, mode interface{}) *gomock.Call

GetSignKey indicates an expected call of GetSignKey.

func (*MockPluginSignFuncMockRecorder) ImportSignKey

func (mr *MockPluginSignFuncMockRecorder) ImportSignKey(key, mode interface{}) *gomock.Call

ImportSignKey indicates an expected call of ImportSignKey.

type MockPluginVerifyFunc

type MockPluginVerifyFunc struct {
	// contains filtered or unexported fields
}

MockPluginVerifyFunc is a mock of PluginVerifyFunc interface.

func NewMockPluginVerifyFunc

func NewMockPluginVerifyFunc(ctrl *gomock.Controller) *MockPluginVerifyFunc

NewMockPluginVerifyFunc creates a new mock instance.

func (*MockPluginVerifyFunc) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPluginVerifyFunc) GetLevel

func (m *MockPluginVerifyFunc) GetLevel() ([]int, uint8)

GetLevel mocks base method.

func (*MockPluginVerifyFunc) GetVerifyKey

func (m *MockPluginVerifyFunc) GetVerifyKey(key []byte, mode int) (crypto.VerifyKey, error)

GetVerifyKey mocks base method.

type MockPluginVerifyFuncMockRecorder

type MockPluginVerifyFuncMockRecorder struct {
	// contains filtered or unexported fields
}

MockPluginVerifyFuncMockRecorder is the mock recorder for MockPluginVerifyFunc.

func (*MockPluginVerifyFuncMockRecorder) GetLevel

GetLevel indicates an expected call of GetLevel.

func (*MockPluginVerifyFuncMockRecorder) GetVerifyKey

func (mr *MockPluginVerifyFuncMockRecorder) GetVerifyKey(key, mode interface{}) *gomock.Call

GetVerifyKey indicates an expected call of GetVerifyKey.

type MockPrivateKey

type MockPrivateKey struct {
	// contains filtered or unexported fields
}

MockPrivateKey is a mock of PrivateKey interface.

func NewMockPrivateKey

func NewMockPrivateKey(ctrl *gomock.Controller) *MockPrivateKey

NewMockPrivateKey creates a new mock instance.

func (*MockPrivateKey) Bytes

func (m *MockPrivateKey) Bytes() []byte

Bytes mocks base method.

func (*MockPrivateKey) Decrypt

func (m *MockPrivateKey) Decrypt(cipher []byte) ([]byte, error)

Decrypt mocks base method.

func (*MockPrivateKey) Destroy

func (m *MockPrivateKey) Destroy()

Destroy mocks base method.

func (*MockPrivateKey) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPrivateKey) Encrypt

func (m *MockPrivateKey) Encrypt(msg []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

func (*MockPrivateKey) GetKeyInfo

func (m *MockPrivateKey) GetKeyInfo() int

GetKeyInfo mocks base method.

func (*MockPrivateKey) Sign

func (m *MockPrivateKey) Sign(msg []byte, hasher hash.Hash, rand io.Reader) ([]byte, error)

Sign mocks base method.

func (*MockPrivateKey) Verify

func (m *MockPrivateKey) Verify(msg []byte, hasher hash.Hash, sig []byte) bool

Verify mocks base method.

type MockPrivateKeyMockRecorder

type MockPrivateKeyMockRecorder struct {
	// contains filtered or unexported fields
}

MockPrivateKeyMockRecorder is the mock recorder for MockPrivateKey.

func (*MockPrivateKeyMockRecorder) Bytes

func (mr *MockPrivateKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockPrivateKeyMockRecorder) Decrypt

func (mr *MockPrivateKeyMockRecorder) Decrypt(cipher interface{}) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockPrivateKeyMockRecorder) Destroy

func (mr *MockPrivateKeyMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockPrivateKeyMockRecorder) Encrypt

func (mr *MockPrivateKeyMockRecorder) Encrypt(msg, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

func (*MockPrivateKeyMockRecorder) GetKeyInfo

func (mr *MockPrivateKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

func (*MockPrivateKeyMockRecorder) Sign

func (mr *MockPrivateKeyMockRecorder) Sign(msg, hasher, rand interface{}) *gomock.Call

Sign indicates an expected call of Sign.

func (*MockPrivateKeyMockRecorder) Verify

func (mr *MockPrivateKeyMockRecorder) Verify(msg, hasher, sig interface{}) *gomock.Call

Verify indicates an expected call of Verify.

type MockPublicKey

type MockPublicKey struct {
	// contains filtered or unexported fields
}

MockPublicKey is a mock of PublicKey interface.

func NewMockPublicKey

func NewMockPublicKey(ctrl *gomock.Controller) *MockPublicKey

NewMockPublicKey creates a new mock instance.

func (*MockPublicKey) Bytes

func (m *MockPublicKey) Bytes() []byte

Bytes mocks base method.

func (*MockPublicKey) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPublicKey) Encrypt

func (m *MockPublicKey) Encrypt(msg []byte, reader io.Reader) ([]byte, error)

Encrypt mocks base method.

func (*MockPublicKey) GetKeyInfo

func (m *MockPublicKey) GetKeyInfo() int

GetKeyInfo mocks base method.

func (*MockPublicKey) Verify

func (m *MockPublicKey) Verify(msg []byte, hasher hash.Hash, sig []byte) bool

Verify mocks base method.

type MockPublicKeyMockRecorder

type MockPublicKeyMockRecorder struct {
	// contains filtered or unexported fields
}

MockPublicKeyMockRecorder is the mock recorder for MockPublicKey.

func (*MockPublicKeyMockRecorder) Bytes

func (mr *MockPublicKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockPublicKeyMockRecorder) Encrypt

func (mr *MockPublicKeyMockRecorder) Encrypt(msg, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

func (*MockPublicKeyMockRecorder) GetKeyInfo

func (mr *MockPublicKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

func (*MockPublicKeyMockRecorder) Verify

func (mr *MockPublicKeyMockRecorder) Verify(msg, hasher, sig interface{}) *gomock.Call

Verify indicates an expected call of Verify.

type MockSecretKey

type MockSecretKey struct {
	// contains filtered or unexported fields
}

MockSecretKey is a mock of SecretKey interface.

func NewMockSecretKey

func NewMockSecretKey(ctrl *gomock.Controller) *MockSecretKey

NewMockSecretKey creates a new mock instance.

func (*MockSecretKey) Decrypt

func (m *MockSecretKey) Decrypt(src []byte) []byte

Decrypt mocks base method.

func (*MockSecretKey) Destroy

func (m *MockSecretKey) Destroy()

Destroy mocks base method.

func (*MockSecretKey) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSecretKey) Encrypt

func (m *MockSecretKey) Encrypt(src []byte, reader io.Reader) []byte

Encrypt mocks base method.

type MockSecretKeyMockRecorder

type MockSecretKeyMockRecorder struct {
	// contains filtered or unexported fields
}

MockSecretKeyMockRecorder is the mock recorder for MockSecretKey.

func (*MockSecretKeyMockRecorder) Decrypt

func (mr *MockSecretKeyMockRecorder) Decrypt(src interface{}) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockSecretKeyMockRecorder) Destroy

func (mr *MockSecretKeyMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockSecretKeyMockRecorder) Encrypt

func (mr *MockSecretKeyMockRecorder) Encrypt(src, reader interface{}) *gomock.Call

Encrypt indicates an expected call of Encrypt.

type MockSignKey

type MockSignKey struct {
	// contains filtered or unexported fields
}

MockSignKey is a mock of SignKey interface.

func NewMockSignKey

func NewMockSignKey(ctrl *gomock.Controller) *MockSignKey

NewMockSignKey creates a new mock instance.

func (*MockSignKey) Bytes

func (m *MockSignKey) Bytes() []byte

Bytes mocks base method.

func (*MockSignKey) Destroy

func (m *MockSignKey) Destroy()

Destroy mocks base method.

func (*MockSignKey) EXPECT

func (m *MockSignKey) EXPECT() *MockSignKeyMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSignKey) GetKeyInfo

func (m *MockSignKey) GetKeyInfo() int

GetKeyInfo mocks base method.

func (*MockSignKey) Sign

func (m *MockSignKey) Sign(msg []byte, hasher hash.Hash, rand io.Reader) ([]byte, error)

Sign mocks base method.

func (*MockSignKey) Verify

func (m *MockSignKey) Verify(msg []byte, hasher hash.Hash, sig []byte) bool

Verify mocks base method.

type MockSignKeyMockRecorder

type MockSignKeyMockRecorder struct {
	// contains filtered or unexported fields
}

MockSignKeyMockRecorder is the mock recorder for MockSignKey.

func (*MockSignKeyMockRecorder) Bytes

func (mr *MockSignKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockSignKeyMockRecorder) Destroy

func (mr *MockSignKeyMockRecorder) Destroy() *gomock.Call

Destroy indicates an expected call of Destroy.

func (*MockSignKeyMockRecorder) GetKeyInfo

func (mr *MockSignKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

func (*MockSignKeyMockRecorder) Sign

func (mr *MockSignKeyMockRecorder) Sign(msg, hasher, rand interface{}) *gomock.Call

Sign indicates an expected call of Sign.

func (*MockSignKeyMockRecorder) Verify

func (mr *MockSignKeyMockRecorder) Verify(msg, hasher, sig interface{}) *gomock.Call

Verify indicates an expected call of Verify.

type MockSigner

type MockSigner struct {
	// contains filtered or unexported fields
}

MockSigner is a mock of Signer interface.

func NewMockSigner

func NewMockSigner(ctrl *gomock.Controller) *MockSigner

NewMockSigner creates a new mock instance.

func (*MockSigner) Bytes

func (m *MockSigner) Bytes() ([]byte, error)

Bytes mocks base method.

func (*MockSigner) EXPECT

func (m *MockSigner) EXPECT() *MockSignerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSigner) FromBytes

func (m *MockSigner) FromBytes(k []byte, opt int) error

FromBytes mocks base method.

func (*MockSigner) Sign

func (m *MockSigner) Sign(k, digest []byte, reader io.Reader) ([]byte, error)

Sign mocks base method.

type MockSignerMockRecorder

type MockSignerMockRecorder struct {
	// contains filtered or unexported fields
}

MockSignerMockRecorder is the mock recorder for MockSigner.

func (*MockSignerMockRecorder) Bytes

func (mr *MockSignerMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockSignerMockRecorder) FromBytes

func (mr *MockSignerMockRecorder) FromBytes(k, opt interface{}) *gomock.Call

FromBytes indicates an expected call of FromBytes.

func (*MockSignerMockRecorder) Sign

func (mr *MockSignerMockRecorder) Sign(k, digest, reader interface{}) *gomock.Call

Sign indicates an expected call of Sign.

type MockVerifier

type MockVerifier struct {
	// contains filtered or unexported fields
}

MockVerifier is a mock of Verifier interface.

func NewMockVerifier

func NewMockVerifier(ctrl *gomock.Controller) *MockVerifier

NewMockVerifier creates a new mock instance.

func (*MockVerifier) Bytes

func (m *MockVerifier) Bytes() ([]byte, error)

Bytes mocks base method.

func (*MockVerifier) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVerifier) FromBytes

func (m *MockVerifier) FromBytes(k []byte, opt int) error

FromBytes mocks base method.

func (*MockVerifier) Verify

func (m *MockVerifier) Verify(k, signature, digest []byte) (bool, error)

Verify mocks base method.

type MockVerifierMockRecorder

type MockVerifierMockRecorder struct {
	// contains filtered or unexported fields
}

MockVerifierMockRecorder is the mock recorder for MockVerifier.

func (*MockVerifierMockRecorder) Bytes

func (mr *MockVerifierMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockVerifierMockRecorder) FromBytes

func (mr *MockVerifierMockRecorder) FromBytes(k, opt interface{}) *gomock.Call

FromBytes indicates an expected call of FromBytes.

func (*MockVerifierMockRecorder) Verify

func (mr *MockVerifierMockRecorder) Verify(k, signature, digest interface{}) *gomock.Call

Verify indicates an expected call of Verify.

type MockVerifyKey

type MockVerifyKey struct {
	// contains filtered or unexported fields
}

MockVerifyKey is a mock of VerifyKey interface.

func NewMockVerifyKey

func NewMockVerifyKey(ctrl *gomock.Controller) *MockVerifyKey

NewMockVerifyKey creates a new mock instance.

func (*MockVerifyKey) Bytes

func (m *MockVerifyKey) Bytes() []byte

Bytes mocks base method.

func (*MockVerifyKey) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockVerifyKey) GetKeyInfo

func (m *MockVerifyKey) GetKeyInfo() int

GetKeyInfo mocks base method.

func (*MockVerifyKey) Verify

func (m *MockVerifyKey) Verify(msg []byte, hasher hash.Hash, sig []byte) bool

Verify mocks base method.

type MockVerifyKeyMockRecorder

type MockVerifyKeyMockRecorder struct {
	// contains filtered or unexported fields
}

MockVerifyKeyMockRecorder is the mock recorder for MockVerifyKey.

func (*MockVerifyKeyMockRecorder) Bytes

func (mr *MockVerifyKeyMockRecorder) Bytes() *gomock.Call

Bytes indicates an expected call of Bytes.

func (*MockVerifyKeyMockRecorder) GetKeyInfo

func (mr *MockVerifyKeyMockRecorder) GetKeyInfo() *gomock.Call

GetKeyInfo indicates an expected call of GetKeyInfo.

func (*MockVerifyKeyMockRecorder) Verify

func (mr *MockVerifyKeyMockRecorder) Verify(msg, hasher, sig interface{}) *gomock.Call

Verify indicates an expected call of Verify.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL