C# Class Net.Pkcs11Interop.Tests.LowLevelAPI40.Helpers

Helper methods for LowLevelAPI tests.
Datei anzeigen Open project: Pkcs11Interop/Pkcs11Interop Class Usage Examples

Public Methods

Method Description
CreateDataObject ( Pkcs11 pkcs11, uint session, uint &objectId ) : CKR

Creates the data object.

GenerateKey ( Pkcs11 pkcs11, uint session, uint &keyId ) : CKR

Generates symetric key.

GenerateKeyPair ( Pkcs11 pkcs11, uint session, uint &pubKeyId, uint &privKeyId ) : CKR

Generates asymetric key pair.

GetUsableSlot ( Pkcs11 pkcs11 ) : uint

Finds slot containing the token that matches criteria specified in Settings class

Method Details

CreateDataObject() public static method

Creates the data object.
public static CreateDataObject ( Pkcs11 pkcs11, uint session, uint &objectId ) : CKR
pkcs11 Net.Pkcs11Interop.LowLevelAPI40.Pkcs11 Initialized PKCS11 wrapper
session uint Read-write session with user logged in
objectId uint Output parameter for data object handle
return CKR

GenerateKey() public static method

Generates symetric key.
public static GenerateKey ( Pkcs11 pkcs11, uint session, uint &keyId ) : CKR
pkcs11 Net.Pkcs11Interop.LowLevelAPI40.Pkcs11 Initialized PKCS11 wrapper
session uint Read-write session with user logged in
keyId uint Output parameter for key object handle
return CKR

GenerateKeyPair() public static method

Generates asymetric key pair.
public static GenerateKeyPair ( Pkcs11 pkcs11, uint session, uint &pubKeyId, uint &privKeyId ) : CKR
pkcs11 Net.Pkcs11Interop.LowLevelAPI40.Pkcs11 Initialized PKCS11 wrapper
session uint Read-write session with user logged in
pubKeyId uint Output parameter for public key object handle
privKeyId uint Output parameter for private key object handle
return CKR

GetUsableSlot() public static method

Finds slot containing the token that matches criteria specified in Settings class
public static GetUsableSlot ( Pkcs11 pkcs11 ) : uint
pkcs11 Net.Pkcs11Interop.LowLevelAPI40.Pkcs11 Initialized PKCS11 wrapper
return uint