mockpkcs11

package
v0.0.0-...-e1d8331 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mockpkcs11 is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPKCS11Context

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

MockPKCS11Context is a mock of PKCS11Context interface.

func NewMockPKCS11Context

func NewMockPKCS11Context(ctrl *gomock.Controller) *MockPKCS11Context

NewMockPKCS11Context creates a new mock instance.

func (*MockPKCS11Context) CloseAllSessions

func (m *MockPKCS11Context) CloseAllSessions(slotID uint) error

CloseAllSessions mocks base method.

func (*MockPKCS11Context) CloseSession

func (m *MockPKCS11Context) CloseSession(sh pkcs11.SessionHandle) error

CloseSession mocks base method.

func (*MockPKCS11Context) Decrypt

func (m *MockPKCS11Context) Decrypt(sh pkcs11.SessionHandle, cipher []byte) ([]byte, error)

Decrypt mocks base method.

func (*MockPKCS11Context) DecryptFinal

func (m *MockPKCS11Context) DecryptFinal(sh pkcs11.SessionHandle) ([]byte, error)

DecryptFinal mocks base method.

func (*MockPKCS11Context) DecryptInit

DecryptInit mocks base method.

func (*MockPKCS11Context) DecryptUpdate

func (m *MockPKCS11Context) DecryptUpdate(sh pkcs11.SessionHandle, cipher []byte) ([]byte, error)

DecryptUpdate mocks base method.

func (*MockPKCS11Context) Destroy

func (m *MockPKCS11Context) Destroy()

Destroy mocks base method.

func (*MockPKCS11Context) EXPECT

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

func (*MockPKCS11Context) Encrypt

func (m *MockPKCS11Context) Encrypt(sh pkcs11.SessionHandle, message []byte) ([]byte, error)

Encrypt mocks base method.

func (*MockPKCS11Context) EncryptFinal

func (m *MockPKCS11Context) EncryptFinal(sh pkcs11.SessionHandle) ([]byte, error)

EncryptFinal mocks base method.

func (*MockPKCS11Context) EncryptInit

EncryptInit mocks base method.

func (*MockPKCS11Context) EncryptUpdate

func (m *MockPKCS11Context) EncryptUpdate(sh pkcs11.SessionHandle, plain []byte) ([]byte, error)

EncryptUpdate mocks base method.

func (*MockPKCS11Context) Finalize

func (m *MockPKCS11Context) Finalize() error

Finalize mocks base method.

func (*MockPKCS11Context) FindObjects

func (m *MockPKCS11Context) FindObjects(sh pkcs11.SessionHandle, max int) ([]pkcs11.ObjectHandle, bool, error)

FindObjects mocks base method.

func (*MockPKCS11Context) FindObjectsFinal

func (m *MockPKCS11Context) FindObjectsFinal(sh pkcs11.SessionHandle) error

FindObjectsFinal mocks base method.

func (*MockPKCS11Context) FindObjectsInit

func (m *MockPKCS11Context) FindObjectsInit(sh pkcs11.SessionHandle, temp []*pkcs11.Attribute) error

FindObjectsInit mocks base method.

func (*MockPKCS11Context) GenerateKey

GenerateKey mocks base method.

func (*MockPKCS11Context) GenerateKeyPair

func (m_2 *MockPKCS11Context) GenerateKeyPair(sh pkcs11.SessionHandle, m []*pkcs11.Mechanism, public, private []*pkcs11.Attribute) (pkcs11.ObjectHandle, pkcs11.ObjectHandle, error)

GenerateKeyPair mocks base method.

func (*MockPKCS11Context) GenerateRandom

func (m *MockPKCS11Context) GenerateRandom(sh pkcs11.SessionHandle, length int) ([]byte, error)

GenerateRandom mocks base method.

func (*MockPKCS11Context) GetAttributeValue

GetAttributeValue mocks base method.

func (*MockPKCS11Context) GetSlotList

func (m *MockPKCS11Context) GetSlotList(tokenPresent bool) ([]uint, error)

GetSlotList mocks base method.

func (*MockPKCS11Context) GetTokenInfo

func (m *MockPKCS11Context) GetTokenInfo(slotID uint) (pkcs11.TokenInfo, error)

GetTokenInfo mocks base method.

func (*MockPKCS11Context) Initialize

func (m *MockPKCS11Context) Initialize() error

Initialize mocks base method.

func (*MockPKCS11Context) Login

func (m *MockPKCS11Context) Login(sh pkcs11.SessionHandle, userType uint, pin string) error

Login mocks base method.

func (*MockPKCS11Context) OpenSession

func (m *MockPKCS11Context) OpenSession(slotID, flags uint) (pkcs11.SessionHandle, error)

OpenSession mocks base method.

func (*MockPKCS11Context) Sign

func (m *MockPKCS11Context) Sign(sh pkcs11.SessionHandle, message []byte) ([]byte, error)

Sign mocks base method.

func (*MockPKCS11Context) SignFinal

func (m *MockPKCS11Context) SignFinal(sh pkcs11.SessionHandle) ([]byte, error)

SignFinal mocks base method.

func (*MockPKCS11Context) SignInit

SignInit mocks base method.

func (*MockPKCS11Context) SignUpdate

func (m *MockPKCS11Context) SignUpdate(sh pkcs11.SessionHandle, message []byte) error

SignUpdate mocks base method.

type MockPKCS11ContextMockRecorder

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

MockPKCS11ContextMockRecorder is the mock recorder for MockPKCS11Context.

func (*MockPKCS11ContextMockRecorder) CloseAllSessions

func (mr *MockPKCS11ContextMockRecorder) CloseAllSessions(slotID any) *gomock.Call

CloseAllSessions indicates an expected call of CloseAllSessions.

func (*MockPKCS11ContextMockRecorder) CloseSession

func (mr *MockPKCS11ContextMockRecorder) CloseSession(sh any) *gomock.Call

CloseSession indicates an expected call of CloseSession.

func (*MockPKCS11ContextMockRecorder) Decrypt

func (mr *MockPKCS11ContextMockRecorder) Decrypt(sh, cipher any) *gomock.Call

Decrypt indicates an expected call of Decrypt.

func (*MockPKCS11ContextMockRecorder) DecryptFinal

func (mr *MockPKCS11ContextMockRecorder) DecryptFinal(sh any) *gomock.Call

DecryptFinal indicates an expected call of DecryptFinal.

func (*MockPKCS11ContextMockRecorder) DecryptInit

func (mr *MockPKCS11ContextMockRecorder) DecryptInit(sh, m, o any) *gomock.Call

DecryptInit indicates an expected call of DecryptInit.

func (*MockPKCS11ContextMockRecorder) DecryptUpdate

func (mr *MockPKCS11ContextMockRecorder) DecryptUpdate(sh, cipher any) *gomock.Call

DecryptUpdate indicates an expected call of DecryptUpdate.

func (*MockPKCS11ContextMockRecorder) Destroy

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

Destroy indicates an expected call of Destroy.

func (*MockPKCS11ContextMockRecorder) Encrypt

func (mr *MockPKCS11ContextMockRecorder) Encrypt(sh, message any) *gomock.Call

Encrypt indicates an expected call of Encrypt.

func (*MockPKCS11ContextMockRecorder) EncryptFinal

func (mr *MockPKCS11ContextMockRecorder) EncryptFinal(sh any) *gomock.Call

EncryptFinal indicates an expected call of EncryptFinal.

func (*MockPKCS11ContextMockRecorder) EncryptInit

func (mr *MockPKCS11ContextMockRecorder) EncryptInit(sh, m, o any) *gomock.Call

EncryptInit indicates an expected call of EncryptInit.

func (*MockPKCS11ContextMockRecorder) EncryptUpdate

func (mr *MockPKCS11ContextMockRecorder) EncryptUpdate(sh, plain any) *gomock.Call

EncryptUpdate indicates an expected call of EncryptUpdate.

func (*MockPKCS11ContextMockRecorder) Finalize

func (mr *MockPKCS11ContextMockRecorder) Finalize() *gomock.Call

Finalize indicates an expected call of Finalize.

func (*MockPKCS11ContextMockRecorder) FindObjects

func (mr *MockPKCS11ContextMockRecorder) FindObjects(sh, max any) *gomock.Call

FindObjects indicates an expected call of FindObjects.

func (*MockPKCS11ContextMockRecorder) FindObjectsFinal

func (mr *MockPKCS11ContextMockRecorder) FindObjectsFinal(sh any) *gomock.Call

FindObjectsFinal indicates an expected call of FindObjectsFinal.

func (*MockPKCS11ContextMockRecorder) FindObjectsInit

func (mr *MockPKCS11ContextMockRecorder) FindObjectsInit(sh, temp any) *gomock.Call

FindObjectsInit indicates an expected call of FindObjectsInit.

func (*MockPKCS11ContextMockRecorder) GenerateKey

func (mr *MockPKCS11ContextMockRecorder) GenerateKey(sh, m, temp any) *gomock.Call

GenerateKey indicates an expected call of GenerateKey.

func (*MockPKCS11ContextMockRecorder) GenerateKeyPair

func (mr *MockPKCS11ContextMockRecorder) GenerateKeyPair(sh, m, public, private any) *gomock.Call

GenerateKeyPair indicates an expected call of GenerateKeyPair.

func (*MockPKCS11ContextMockRecorder) GenerateRandom

func (mr *MockPKCS11ContextMockRecorder) GenerateRandom(sh, length any) *gomock.Call

GenerateRandom indicates an expected call of GenerateRandom.

func (*MockPKCS11ContextMockRecorder) GetAttributeValue

func (mr *MockPKCS11ContextMockRecorder) GetAttributeValue(sh, o, a any) *gomock.Call

GetAttributeValue indicates an expected call of GetAttributeValue.

func (*MockPKCS11ContextMockRecorder) GetSlotList

func (mr *MockPKCS11ContextMockRecorder) GetSlotList(tokenPresent any) *gomock.Call

GetSlotList indicates an expected call of GetSlotList.

func (*MockPKCS11ContextMockRecorder) GetTokenInfo

func (mr *MockPKCS11ContextMockRecorder) GetTokenInfo(slotID any) *gomock.Call

GetTokenInfo indicates an expected call of GetTokenInfo.

func (*MockPKCS11ContextMockRecorder) Initialize

func (mr *MockPKCS11ContextMockRecorder) Initialize() *gomock.Call

Initialize indicates an expected call of Initialize.

func (*MockPKCS11ContextMockRecorder) Login

func (mr *MockPKCS11ContextMockRecorder) Login(sh, userType, pin any) *gomock.Call

Login indicates an expected call of Login.

func (*MockPKCS11ContextMockRecorder) OpenSession

func (mr *MockPKCS11ContextMockRecorder) OpenSession(slotID, flags any) *gomock.Call

OpenSession indicates an expected call of OpenSession.

func (*MockPKCS11ContextMockRecorder) Sign

func (mr *MockPKCS11ContextMockRecorder) Sign(sh, message any) *gomock.Call

Sign indicates an expected call of Sign.

func (*MockPKCS11ContextMockRecorder) SignFinal

func (mr *MockPKCS11ContextMockRecorder) SignFinal(sh any) *gomock.Call

SignFinal indicates an expected call of SignFinal.

func (*MockPKCS11ContextMockRecorder) SignInit

func (mr *MockPKCS11ContextMockRecorder) SignInit(sh, m, o any) *gomock.Call

SignInit indicates an expected call of SignInit.

func (*MockPKCS11ContextMockRecorder) SignUpdate

func (mr *MockPKCS11ContextMockRecorder) SignUpdate(sh, message any) *gomock.Call

SignUpdate indicates an expected call of SignUpdate.

Jump to

Keyboard shortcuts

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