Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCryptoki

type MockCryptoki struct {
	mock.Mock
}

MockCryptoki is an autogenerated mock type for the Cryptoki type

func NewMockCryptoki

func NewMockCryptoki(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCryptoki

NewMockCryptoki creates a new instance of MockCryptoki. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockCryptoki) CloseSession

func (_m *MockCryptoki) CloseSession(sh pkcs11.SessionHandle) error

CloseSession provides a mock function with given fields: sh

func (*MockCryptoki) CreateObject

func (_m *MockCryptoki) CreateObject(sh pkcs11.SessionHandle, temp []*pkcs11.Attribute) (pkcs11.ObjectHandle, error)

CreateObject provides a mock function with given fields: sh, temp

func (*MockCryptoki) Destroy

func (_m *MockCryptoki) Destroy()

Destroy provides a mock function with no fields

func (*MockCryptoki) DestroyObject

func (_m *MockCryptoki) DestroyObject(sh pkcs11.SessionHandle, oh pkcs11.ObjectHandle) error

DestroyObject provides a mock function with given fields: sh, oh

func (*MockCryptoki) EXPECT

func (_m *MockCryptoki) EXPECT() *MockCryptoki_Expecter

func (*MockCryptoki) Finalize

func (_m *MockCryptoki) Finalize() error

Finalize provides a mock function with no fields

func (*MockCryptoki) FindObjects

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

FindObjects provides a mock function with given fields: sh, max

func (*MockCryptoki) FindObjectsFinal

func (_m *MockCryptoki) FindObjectsFinal(sh pkcs11.SessionHandle) error

FindObjectsFinal provides a mock function with given fields: sh

func (*MockCryptoki) FindObjectsInit

func (_m *MockCryptoki) FindObjectsInit(sh pkcs11.SessionHandle, temp []*pkcs11.Attribute) error

FindObjectsInit provides a mock function with given fields: sh, temp

func (*MockCryptoki) GenerateKey

func (_m *MockCryptoki) GenerateKey(sh pkcs11.SessionHandle, m []*pkcs11.Mechanism, temp []*pkcs11.Attribute) (pkcs11.ObjectHandle, error)

GenerateKey provides a mock function with given fields: sh, m, temp

func (*MockCryptoki) GenerateKeyPair

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

GenerateKeyPair provides a mock function with given fields: sh, m, public, private

func (*MockCryptoki) GetAttributeValue

func (_m *MockCryptoki) GetAttributeValue(sh pkcs11.SessionHandle, o pkcs11.ObjectHandle, a []*pkcs11.Attribute) ([]*pkcs11.Attribute, error)

GetAttributeValue provides a mock function with given fields: sh, o, a

func (*MockCryptoki) GetInfo

func (_m *MockCryptoki) GetInfo() (pkcs11.Info, error)

GetInfo provides a mock function with no fields

func (*MockCryptoki) GetMechanismInfo

func (_m *MockCryptoki) GetMechanismInfo(slotID uint, m []*pkcs11.Mechanism) (pkcs11.MechanismInfo, error)

GetMechanismInfo provides a mock function with given fields: slotID, m

func (*MockCryptoki) GetMechanismList

func (_m *MockCryptoki) GetMechanismList(slotID uint) ([]*pkcs11.Mechanism, error)

GetMechanismList provides a mock function with given fields: slotID

func (*MockCryptoki) GetSlotInfo

func (_m *MockCryptoki) GetSlotInfo(slotID uint) (pkcs11.SlotInfo, error)

GetSlotInfo provides a mock function with given fields: slotID

func (*MockCryptoki) GetSlotList

func (_m *MockCryptoki) GetSlotList(tokenPresent bool) ([]uint, error)

GetSlotList provides a mock function with given fields: tokenPresent

func (*MockCryptoki) GetTokenInfo

func (_m *MockCryptoki) GetTokenInfo(slotID uint) (pkcs11.TokenInfo, error)

GetTokenInfo provides a mock function with given fields: slotID

func (*MockCryptoki) Initialize

func (_m *MockCryptoki) Initialize(opts ...pkcs11.InitializeOption) error

Initialize provides a mock function with given fields: opts

func (*MockCryptoki) Login

func (_m *MockCryptoki) Login(sh pkcs11.SessionHandle, userType uint, pin string) error

Login provides a mock function with given fields: sh, userType, pin

func (*MockCryptoki) Logout

func (_m *MockCryptoki) Logout(sh pkcs11.SessionHandle) error

Logout provides a mock function with given fields: sh

func (*MockCryptoki) OpenSession

func (_m *MockCryptoki) OpenSession(slotID uint, flags uint) (pkcs11.SessionHandle, error)

OpenSession provides a mock function with given fields: slotID, flags

func (*MockCryptoki) Sign

func (_m *MockCryptoki) Sign(sh pkcs11.SessionHandle, message []byte) ([]byte, error)

Sign provides a mock function with given fields: sh, message

func (*MockCryptoki) SignInit

SignInit provides a mock function with given fields: sh, m, o

func (*MockCryptoki) UnwrapKey

func (_m *MockCryptoki) UnwrapKey(sh pkcs11.SessionHandle, m []*pkcs11.Mechanism, unwrappingkey pkcs11.ObjectHandle, wrappedkey []byte, a []*pkcs11.Attribute) (pkcs11.ObjectHandle, error)

UnwrapKey provides a mock function with given fields: sh, m, unwrappingkey, wrappedkey, a

func (*MockCryptoki) WrapKey

func (_m *MockCryptoki) WrapKey(sh pkcs11.SessionHandle, m []*pkcs11.Mechanism, wrappingkey pkcs11.ObjectHandle, key pkcs11.ObjectHandle) ([]byte, error)

WrapKey provides a mock function with given fields: sh, m, wrappingkey, key

type MockCryptoki_CloseSession_Call

type MockCryptoki_CloseSession_Call struct {
	*mock.Call
}

MockCryptoki_CloseSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseSession'

func (*MockCryptoki_CloseSession_Call) Return

func (*MockCryptoki_CloseSession_Call) Run

func (*MockCryptoki_CloseSession_Call) RunAndReturn

type MockCryptoki_CreateObject_Call

type MockCryptoki_CreateObject_Call struct {
	*mock.Call
}

MockCryptoki_CreateObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateObject'

func (*MockCryptoki_CreateObject_Call) Return

func (*MockCryptoki_CreateObject_Call) Run

func (*MockCryptoki_CreateObject_Call) RunAndReturn

type MockCryptoki_DestroyObject_Call

type MockCryptoki_DestroyObject_Call struct {
	*mock.Call
}

MockCryptoki_DestroyObject_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DestroyObject'

func (*MockCryptoki_DestroyObject_Call) Return

func (*MockCryptoki_DestroyObject_Call) Run

func (*MockCryptoki_DestroyObject_Call) RunAndReturn

type MockCryptoki_Destroy_Call

type MockCryptoki_Destroy_Call struct {
	*mock.Call
}

MockCryptoki_Destroy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Destroy'

func (*MockCryptoki_Destroy_Call) Return

func (*MockCryptoki_Destroy_Call) Run

func (*MockCryptoki_Destroy_Call) RunAndReturn

func (_c *MockCryptoki_Destroy_Call) RunAndReturn(run func()) *MockCryptoki_Destroy_Call

type MockCryptoki_Expecter

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

func (*MockCryptoki_Expecter) CloseSession

func (_e *MockCryptoki_Expecter) CloseSession(sh interface{}) *MockCryptoki_CloseSession_Call

CloseSession is a helper method to define mock.On call

  • sh pkcs11.SessionHandle

func (*MockCryptoki_Expecter) CreateObject

func (_e *MockCryptoki_Expecter) CreateObject(sh interface{}, temp interface{}) *MockCryptoki_CreateObject_Call

CreateObject is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • temp []*pkcs11.Attribute

func (*MockCryptoki_Expecter) Destroy

Destroy is a helper method to define mock.On call

func (*MockCryptoki_Expecter) DestroyObject

func (_e *MockCryptoki_Expecter) DestroyObject(sh interface{}, oh interface{}) *MockCryptoki_DestroyObject_Call

DestroyObject is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • oh pkcs11.ObjectHandle

func (*MockCryptoki_Expecter) Finalize

Finalize is a helper method to define mock.On call

func (*MockCryptoki_Expecter) FindObjects

func (_e *MockCryptoki_Expecter) FindObjects(sh interface{}, max interface{}) *MockCryptoki_FindObjects_Call

FindObjects is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • max int

func (*MockCryptoki_Expecter) FindObjectsFinal

func (_e *MockCryptoki_Expecter) FindObjectsFinal(sh interface{}) *MockCryptoki_FindObjectsFinal_Call

FindObjectsFinal is a helper method to define mock.On call

  • sh pkcs11.SessionHandle

func (*MockCryptoki_Expecter) FindObjectsInit

func (_e *MockCryptoki_Expecter) FindObjectsInit(sh interface{}, temp interface{}) *MockCryptoki_FindObjectsInit_Call

FindObjectsInit is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • temp []*pkcs11.Attribute

func (*MockCryptoki_Expecter) GenerateKey

func (_e *MockCryptoki_Expecter) GenerateKey(sh interface{}, m interface{}, temp interface{}) *MockCryptoki_GenerateKey_Call

GenerateKey is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • m []*pkcs11.Mechanism
  • temp []*pkcs11.Attribute

func (*MockCryptoki_Expecter) GenerateKeyPair

func (_e *MockCryptoki_Expecter) GenerateKeyPair(sh interface{}, m interface{}, public interface{}, private interface{}) *MockCryptoki_GenerateKeyPair_Call

GenerateKeyPair is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • m []*pkcs11.Mechanism
  • public []*pkcs11.Attribute
  • private []*pkcs11.Attribute

func (*MockCryptoki_Expecter) GetAttributeValue

func (_e *MockCryptoki_Expecter) GetAttributeValue(sh interface{}, o interface{}, a interface{}) *MockCryptoki_GetAttributeValue_Call

GetAttributeValue is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • o pkcs11.ObjectHandle
  • a []*pkcs11.Attribute

func (*MockCryptoki_Expecter) GetInfo

GetInfo is a helper method to define mock.On call

func (*MockCryptoki_Expecter) GetMechanismInfo

func (_e *MockCryptoki_Expecter) GetMechanismInfo(slotID interface{}, m interface{}) *MockCryptoki_GetMechanismInfo_Call

GetMechanismInfo is a helper method to define mock.On call

  • slotID uint
  • m []*pkcs11.Mechanism

func (*MockCryptoki_Expecter) GetMechanismList

func (_e *MockCryptoki_Expecter) GetMechanismList(slotID interface{}) *MockCryptoki_GetMechanismList_Call

GetMechanismList is a helper method to define mock.On call

  • slotID uint

func (*MockCryptoki_Expecter) GetSlotInfo

func (_e *MockCryptoki_Expecter) GetSlotInfo(slotID interface{}) *MockCryptoki_GetSlotInfo_Call

GetSlotInfo is a helper method to define mock.On call

  • slotID uint

func (*MockCryptoki_Expecter) GetSlotList

func (_e *MockCryptoki_Expecter) GetSlotList(tokenPresent interface{}) *MockCryptoki_GetSlotList_Call

GetSlotList is a helper method to define mock.On call

  • tokenPresent bool

func (*MockCryptoki_Expecter) GetTokenInfo

func (_e *MockCryptoki_Expecter) GetTokenInfo(slotID interface{}) *MockCryptoki_GetTokenInfo_Call

GetTokenInfo is a helper method to define mock.On call

  • slotID uint

func (*MockCryptoki_Expecter) Initialize

func (_e *MockCryptoki_Expecter) Initialize(opts ...interface{}) *MockCryptoki_Initialize_Call

Initialize is a helper method to define mock.On call

  • opts ...pkcs11.InitializeOption

func (*MockCryptoki_Expecter) Login

func (_e *MockCryptoki_Expecter) Login(sh interface{}, userType interface{}, pin interface{}) *MockCryptoki_Login_Call

Login is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • userType uint
  • pin string

func (*MockCryptoki_Expecter) Logout

func (_e *MockCryptoki_Expecter) Logout(sh interface{}) *MockCryptoki_Logout_Call

Logout is a helper method to define mock.On call

  • sh pkcs11.SessionHandle

func (*MockCryptoki_Expecter) OpenSession

func (_e *MockCryptoki_Expecter) OpenSession(slotID interface{}, flags interface{}) *MockCryptoki_OpenSession_Call

OpenSession is a helper method to define mock.On call

  • slotID uint
  • flags uint

func (*MockCryptoki_Expecter) Sign

func (_e *MockCryptoki_Expecter) Sign(sh interface{}, message interface{}) *MockCryptoki_Sign_Call

Sign is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • message []byte

func (*MockCryptoki_Expecter) SignInit

func (_e *MockCryptoki_Expecter) SignInit(sh interface{}, m interface{}, o interface{}) *MockCryptoki_SignInit_Call

SignInit is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • m []*pkcs11.Mechanism
  • o pkcs11.ObjectHandle

func (*MockCryptoki_Expecter) UnwrapKey

func (_e *MockCryptoki_Expecter) UnwrapKey(sh interface{}, m interface{}, unwrappingkey interface{}, wrappedkey interface{}, a interface{}) *MockCryptoki_UnwrapKey_Call

UnwrapKey is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • m []*pkcs11.Mechanism
  • unwrappingkey pkcs11.ObjectHandle
  • wrappedkey []byte
  • a []*pkcs11.Attribute

func (*MockCryptoki_Expecter) WrapKey

func (_e *MockCryptoki_Expecter) WrapKey(sh interface{}, m interface{}, wrappingkey interface{}, key interface{}) *MockCryptoki_WrapKey_Call

WrapKey is a helper method to define mock.On call

  • sh pkcs11.SessionHandle
  • m []*pkcs11.Mechanism
  • wrappingkey pkcs11.ObjectHandle
  • key pkcs11.ObjectHandle

type MockCryptoki_Finalize_Call

type MockCryptoki_Finalize_Call struct {
	*mock.Call
}

MockCryptoki_Finalize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Finalize'

func (*MockCryptoki_Finalize_Call) Return

func (*MockCryptoki_Finalize_Call) Run

func (*MockCryptoki_Finalize_Call) RunAndReturn

func (_c *MockCryptoki_Finalize_Call) RunAndReturn(run func() error) *MockCryptoki_Finalize_Call

type MockCryptoki_FindObjectsFinal_Call

type MockCryptoki_FindObjectsFinal_Call struct {
	*mock.Call
}

MockCryptoki_FindObjectsFinal_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindObjectsFinal'

func (*MockCryptoki_FindObjectsFinal_Call) Return

func (*MockCryptoki_FindObjectsFinal_Call) Run

func (*MockCryptoki_FindObjectsFinal_Call) RunAndReturn

type MockCryptoki_FindObjectsInit_Call

type MockCryptoki_FindObjectsInit_Call struct {
	*mock.Call
}

MockCryptoki_FindObjectsInit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindObjectsInit'

func (*MockCryptoki_FindObjectsInit_Call) Return

func (*MockCryptoki_FindObjectsInit_Call) Run

func (*MockCryptoki_FindObjectsInit_Call) RunAndReturn

type MockCryptoki_FindObjects_Call

type MockCryptoki_FindObjects_Call struct {
	*mock.Call
}

MockCryptoki_FindObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindObjects'

func (*MockCryptoki_FindObjects_Call) Return

func (*MockCryptoki_FindObjects_Call) Run

func (*MockCryptoki_FindObjects_Call) RunAndReturn

type MockCryptoki_GenerateKeyPair_Call

type MockCryptoki_GenerateKeyPair_Call struct {
	*mock.Call
}

MockCryptoki_GenerateKeyPair_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateKeyPair'

func (*MockCryptoki_GenerateKeyPair_Call) Return

func (*MockCryptoki_GenerateKeyPair_Call) Run

type MockCryptoki_GenerateKey_Call

type MockCryptoki_GenerateKey_Call struct {
	*mock.Call
}

MockCryptoki_GenerateKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GenerateKey'

func (*MockCryptoki_GenerateKey_Call) Return

func (*MockCryptoki_GenerateKey_Call) Run

func (*MockCryptoki_GenerateKey_Call) RunAndReturn

type MockCryptoki_GetAttributeValue_Call

type MockCryptoki_GetAttributeValue_Call struct {
	*mock.Call
}

MockCryptoki_GetAttributeValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAttributeValue'

func (*MockCryptoki_GetAttributeValue_Call) Return

func (*MockCryptoki_GetAttributeValue_Call) Run

func (*MockCryptoki_GetAttributeValue_Call) RunAndReturn

type MockCryptoki_GetInfo_Call

type MockCryptoki_GetInfo_Call struct {
	*mock.Call
}

MockCryptoki_GetInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInfo'

func (*MockCryptoki_GetInfo_Call) Return

func (*MockCryptoki_GetInfo_Call) Run

func (*MockCryptoki_GetInfo_Call) RunAndReturn

func (_c *MockCryptoki_GetInfo_Call) RunAndReturn(run func() (pkcs11.Info, error)) *MockCryptoki_GetInfo_Call

type MockCryptoki_GetMechanismInfo_Call

type MockCryptoki_GetMechanismInfo_Call struct {
	*mock.Call
}

MockCryptoki_GetMechanismInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMechanismInfo'

func (*MockCryptoki_GetMechanismInfo_Call) Return

func (*MockCryptoki_GetMechanismInfo_Call) Run

func (*MockCryptoki_GetMechanismInfo_Call) RunAndReturn

type MockCryptoki_GetMechanismList_Call

type MockCryptoki_GetMechanismList_Call struct {
	*mock.Call
}

MockCryptoki_GetMechanismList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMechanismList'

func (*MockCryptoki_GetMechanismList_Call) Return

func (*MockCryptoki_GetMechanismList_Call) Run

func (*MockCryptoki_GetMechanismList_Call) RunAndReturn

type MockCryptoki_GetSlotInfo_Call

type MockCryptoki_GetSlotInfo_Call struct {
	*mock.Call
}

MockCryptoki_GetSlotInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSlotInfo'

func (*MockCryptoki_GetSlotInfo_Call) Return

func (*MockCryptoki_GetSlotInfo_Call) Run

func (*MockCryptoki_GetSlotInfo_Call) RunAndReturn

type MockCryptoki_GetSlotList_Call

type MockCryptoki_GetSlotList_Call struct {
	*mock.Call
}

MockCryptoki_GetSlotList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSlotList'

func (*MockCryptoki_GetSlotList_Call) Return

func (*MockCryptoki_GetSlotList_Call) Run

func (_c *MockCryptoki_GetSlotList_Call) Run(run func(tokenPresent bool)) *MockCryptoki_GetSlotList_Call

func (*MockCryptoki_GetSlotList_Call) RunAndReturn

type MockCryptoki_GetTokenInfo_Call

type MockCryptoki_GetTokenInfo_Call struct {
	*mock.Call
}

MockCryptoki_GetTokenInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTokenInfo'

func (*MockCryptoki_GetTokenInfo_Call) Return

func (*MockCryptoki_GetTokenInfo_Call) Run

func (*MockCryptoki_GetTokenInfo_Call) RunAndReturn

type MockCryptoki_Initialize_Call

type MockCryptoki_Initialize_Call struct {
	*mock.Call
}

MockCryptoki_Initialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Initialize'

func (*MockCryptoki_Initialize_Call) Return

func (*MockCryptoki_Initialize_Call) Run

func (*MockCryptoki_Initialize_Call) RunAndReturn

type MockCryptoki_Login_Call

type MockCryptoki_Login_Call struct {
	*mock.Call
}

MockCryptoki_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'

func (*MockCryptoki_Login_Call) Return

func (*MockCryptoki_Login_Call) Run

func (_c *MockCryptoki_Login_Call) Run(run func(sh pkcs11.SessionHandle, userType uint, pin string)) *MockCryptoki_Login_Call

func (*MockCryptoki_Login_Call) RunAndReturn

type MockCryptoki_Logout_Call

type MockCryptoki_Logout_Call struct {
	*mock.Call
}

MockCryptoki_Logout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logout'

func (*MockCryptoki_Logout_Call) Return

func (*MockCryptoki_Logout_Call) Run

func (*MockCryptoki_Logout_Call) RunAndReturn

type MockCryptoki_OpenSession_Call

type MockCryptoki_OpenSession_Call struct {
	*mock.Call
}

MockCryptoki_OpenSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenSession'

func (*MockCryptoki_OpenSession_Call) Return

func (*MockCryptoki_OpenSession_Call) Run

func (_c *MockCryptoki_OpenSession_Call) Run(run func(slotID uint, flags uint)) *MockCryptoki_OpenSession_Call

func (*MockCryptoki_OpenSession_Call) RunAndReturn

type MockCryptoki_SignInit_Call

type MockCryptoki_SignInit_Call struct {
	*mock.Call
}

MockCryptoki_SignInit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignInit'

func (*MockCryptoki_SignInit_Call) Return

func (*MockCryptoki_SignInit_Call) Run

func (*MockCryptoki_SignInit_Call) RunAndReturn

type MockCryptoki_Sign_Call

type MockCryptoki_Sign_Call struct {
	*mock.Call
}

MockCryptoki_Sign_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sign'

func (*MockCryptoki_Sign_Call) Return

func (_c *MockCryptoki_Sign_Call) Return(_a0 []byte, _a1 error) *MockCryptoki_Sign_Call

func (*MockCryptoki_Sign_Call) Run

func (_c *MockCryptoki_Sign_Call) Run(run func(sh pkcs11.SessionHandle, message []byte)) *MockCryptoki_Sign_Call

func (*MockCryptoki_Sign_Call) RunAndReturn

func (_c *MockCryptoki_Sign_Call) RunAndReturn(run func(pkcs11.SessionHandle, []byte) ([]byte, error)) *MockCryptoki_Sign_Call

type MockCryptoki_UnwrapKey_Call

type MockCryptoki_UnwrapKey_Call struct {
	*mock.Call
}

MockCryptoki_UnwrapKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnwrapKey'

func (*MockCryptoki_UnwrapKey_Call) Return

func (*MockCryptoki_UnwrapKey_Call) Run

type MockCryptoki_WrapKey_Call

type MockCryptoki_WrapKey_Call struct {
	*mock.Call
}

MockCryptoki_WrapKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WrapKey'

func (*MockCryptoki_WrapKey_Call) Return

func (*MockCryptoki_WrapKey_Call) Run

func (*MockCryptoki_WrapKey_Call) RunAndReturn

Jump to

Keyboard shortcuts

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