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

Helper methods for LowLevelAPI tests.
Afficher le fichier Open project: Pkcs11Interop/Pkcs11Interop Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

GenerateKey() public static méthode

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

GenerateKeyPair() public static méthode

Generates asymetric key pair.
public static GenerateKeyPair ( Pkcs11 pkcs11, uint session, uint &pubKeyId, uint &privKeyId ) : CKR
pkcs11 Net.Pkcs11Interop.LowLevelAPI41.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
Résultat CKR

GetUsableSlot() public static méthode

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