C# Class Net.Pkcs11Interop.LowLevelAPI41.CkmUtils

Utility class that helps to manage CK_MECHANISM structure
Mostrar archivo 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 ( uint mechanism ) : CK_MECHANISM

Creates mechanism of given type with no parameter

CreateMechanism ( uint mechanism, byte parameter ) : CK_MECHANISM

Creates mechanism of given type with byte array parameter

CreateMechanism ( uint mechanism, object parameterStructure ) : CK_MECHANISM

Creates mechanism of given type with structure as parameter

Private Methods

Method Description
_CreateMechanism ( uint 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 ( uint mechanism ) : CK_MECHANISM
mechanism uint Mechanism type
return CK_MECHANISM

CreateMechanism() public static method

Creates mechanism of given type with byte array parameter
public static CreateMechanism ( uint mechanism, byte parameter ) : CK_MECHANISM
mechanism uint 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 ( uint mechanism, object parameterStructure ) : CK_MECHANISM
mechanism uint Mechanism type
parameterStructure object Structure with mechanism parameters
return CK_MECHANISM