C# Class Net.Pkcs11Interop.LowLevelAPI80.CkmUtils

Utility class that helps to manage CK_MECHANISM structure
Show file Open project: Pkcs11Interop/Pkcs11Interop

Public Methods

Method Description
CreateMechanism ( CKM mechanism ) : CK_MECHANISM

Creates mechanism of given type with no parameter

CreateMechanism ( CKM mechanism, byte parameter ) : CK_MECHANISM

Creates mechanism of given type with byte array parameter

CreateMechanism ( CKM mechanism, object parameterStructure ) : CK_MECHANISM

Creates mechanism of given type with structure as parameter

CreateMechanism ( ulong mechanism ) : CK_MECHANISM

Creates mechanism of given type with no parameter

CreateMechanism ( ulong mechanism, byte parameter ) : CK_MECHANISM

Creates mechanism of given type with byte array parameter

CreateMechanism ( ulong mechanism, object parameterStructure ) : CK_MECHANISM

Creates mechanism of given type with structure as parameter

Private Methods

Method Description
_CreateMechanism ( ulong mechanism, byte parameter ) : CK_MECHANISM

Creates mechanism of given type with parameter copied from managed byte array to the newly allocated unmanaged memory

Method Details

CreateMechanism() public static method

Creates mechanism of given type with no parameter
public static CreateMechanism ( CKM mechanism ) : CK_MECHANISM
mechanism CKM Mechanism type
return CK_MECHANISM

CreateMechanism() public static method

Creates mechanism of given type with byte array parameter
public static CreateMechanism ( CKM mechanism, byte parameter ) : CK_MECHANISM
mechanism CKM Mechanism type
parameter byte Mechanism parameter
return CK_MECHANISM

CreateMechanism() public static method

Creates mechanism of given type with structure as parameter
public static CreateMechanism ( CKM mechanism, object parameterStructure ) : CK_MECHANISM
mechanism CKM Mechanism type
parameterStructure object Structure with mechanism parameters
return CK_MECHANISM

CreateMechanism() public static method

Creates mechanism of given type with no parameter
public static CreateMechanism ( ulong mechanism ) : CK_MECHANISM
mechanism ulong Mechanism type
return CK_MECHANISM

CreateMechanism() public static method

Creates mechanism of given type with byte array parameter
public static CreateMechanism ( ulong mechanism, byte parameter ) : CK_MECHANISM
mechanism ulong Mechanism type
parameter byte Mechanism parameter
return CK_MECHANISM

CreateMechanism() public static method

Creates mechanism of given type with structure as parameter
public static CreateMechanism ( ulong mechanism, object parameterStructure ) : CK_MECHANISM
mechanism ulong Mechanism type
parameterStructure object Structure with mechanism parameters
return CK_MECHANISM