mock_pkcs11

package
v1.16.9 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package mock_pkcs11 is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPKCS11Ctx

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

MockPKCS11Ctx is a mock of PKCS11Ctx interface.

func NewMockPKCS11Ctx

func NewMockPKCS11Ctx(ctrl *gomock.Controller) *MockPKCS11Ctx

NewMockPKCS11Ctx creates a new mock instance.

func (*MockPKCS11Ctx) CloseSession

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

CloseSession mocks base method.

func (*MockPKCS11Ctx) EXPECT

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

func (*MockPKCS11Ctx) FindObjects

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

FindObjects mocks base method.

func (*MockPKCS11Ctx) FindObjectsFinal

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

FindObjectsFinal mocks base method.

func (*MockPKCS11Ctx) FindObjectsInit

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

FindObjectsInit mocks base method.

func (*MockPKCS11Ctx) GenerateRandom

func (m *MockPKCS11Ctx) GenerateRandom(arg0 pkcs11.SessionHandle, arg1 int) ([]byte, error)

GenerateRandom mocks base method.

func (*MockPKCS11Ctx) GetAttributeValue

func (m *MockPKCS11Ctx) GetAttributeValue(arg0 pkcs11.SessionHandle, arg1 pkcs11.ObjectHandle, arg2 []*pkcs11.Attribute) ([]*pkcs11.Attribute, error)

GetAttributeValue mocks base method.

func (*MockPKCS11Ctx) GetSlotInfo

func (m *MockPKCS11Ctx) GetSlotInfo(slotID uint) (pkcs11.SlotInfo, error)

GetSlotInfo mocks base method.

func (*MockPKCS11Ctx) GetSlotList

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

GetSlotList mocks base method.

func (*MockPKCS11Ctx) GetTokenInfo

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

GetTokenInfo mocks base method.

func (*MockPKCS11Ctx) Login

func (m *MockPKCS11Ctx) Login(arg0 pkcs11.SessionHandle, arg1 uint, arg2 string) error

Login mocks base method.

func (*MockPKCS11Ctx) OpenSession

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

OpenSession mocks base method.

func (*MockPKCS11Ctx) Sign

func (m *MockPKCS11Ctx) Sign(arg0 pkcs11.SessionHandle, arg1 []byte) ([]byte, error)

Sign mocks base method.

func (*MockPKCS11Ctx) SignInit

func (m *MockPKCS11Ctx) SignInit(arg0 pkcs11.SessionHandle, arg1 []*pkcs11.Mechanism, arg2 pkcs11.ObjectHandle) error

SignInit mocks base method.

type MockPKCS11CtxMockRecorder

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

MockPKCS11CtxMockRecorder is the mock recorder for MockPKCS11Ctx.

func (*MockPKCS11CtxMockRecorder) CloseSession

func (mr *MockPKCS11CtxMockRecorder) CloseSession(sh interface{}) *gomock.Call

CloseSession indicates an expected call of CloseSession.

func (*MockPKCS11CtxMockRecorder) FindObjects

func (mr *MockPKCS11CtxMockRecorder) FindObjects(sh, max interface{}) *gomock.Call

FindObjects indicates an expected call of FindObjects.

func (*MockPKCS11CtxMockRecorder) FindObjectsFinal

func (mr *MockPKCS11CtxMockRecorder) FindObjectsFinal(sh interface{}) *gomock.Call

FindObjectsFinal indicates an expected call of FindObjectsFinal.

func (*MockPKCS11CtxMockRecorder) FindObjectsInit

func (mr *MockPKCS11CtxMockRecorder) FindObjectsInit(sh, temp interface{}) *gomock.Call

FindObjectsInit indicates an expected call of FindObjectsInit.

func (*MockPKCS11CtxMockRecorder) GenerateRandom

func (mr *MockPKCS11CtxMockRecorder) GenerateRandom(arg0, arg1 interface{}) *gomock.Call

GenerateRandom indicates an expected call of GenerateRandom.

func (*MockPKCS11CtxMockRecorder) GetAttributeValue

func (mr *MockPKCS11CtxMockRecorder) GetAttributeValue(arg0, arg1, arg2 interface{}) *gomock.Call

GetAttributeValue indicates an expected call of GetAttributeValue.

func (*MockPKCS11CtxMockRecorder) GetSlotInfo

func (mr *MockPKCS11CtxMockRecorder) GetSlotInfo(slotID interface{}) *gomock.Call

GetSlotInfo indicates an expected call of GetSlotInfo.

func (*MockPKCS11CtxMockRecorder) GetSlotList

func (mr *MockPKCS11CtxMockRecorder) GetSlotList(tokenPresent interface{}) *gomock.Call

GetSlotList indicates an expected call of GetSlotList.

func (*MockPKCS11CtxMockRecorder) GetTokenInfo

func (mr *MockPKCS11CtxMockRecorder) GetTokenInfo(slotID interface{}) *gomock.Call

GetTokenInfo indicates an expected call of GetTokenInfo.

func (*MockPKCS11CtxMockRecorder) Login

func (mr *MockPKCS11CtxMockRecorder) Login(arg0, arg1, arg2 interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockPKCS11CtxMockRecorder) OpenSession

func (mr *MockPKCS11CtxMockRecorder) OpenSession(slotID, flags interface{}) *gomock.Call

OpenSession indicates an expected call of OpenSession.

func (*MockPKCS11CtxMockRecorder) Sign

func (mr *MockPKCS11CtxMockRecorder) Sign(arg0, arg1 interface{}) *gomock.Call

Sign indicates an expected call of Sign.

func (*MockPKCS11CtxMockRecorder) SignInit

func (mr *MockPKCS11CtxMockRecorder) SignInit(arg0, arg1, arg2 interface{}) *gomock.Call

SignInit indicates an expected call of SignInit.

Jump to

Keyboard shortcuts

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