C# Class Net.Pkcs11Interop.Tests.LowLevelAPI80.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, ulong session, ulong &objectId ) : CKR

Creates the data object.

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

Generates symetric key.

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

Generates asymetric key pair.

GetUsableSlot ( Pkcs11 pkcs11 ) : ulong

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, ulong session, ulong &objectId ) : CKR
pkcs11 Net.Pkcs11Interop.LowLevelAPI80.Pkcs11 Initialized PKCS11 wrapper
session ulong Read-write session with user logged in
objectId ulong Output parameter for data object handle
Résultat CKR

GenerateKey() public static méthode

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

GenerateKeyPair() public static méthode

Generates asymetric key pair.
public static GenerateKeyPair ( Pkcs11 pkcs11, ulong session, ulong &pubKeyId, ulong &privKeyId ) : CKR
pkcs11 Net.Pkcs11Interop.LowLevelAPI80.Pkcs11 Initialized PKCS11 wrapper
session ulong Read-write session with user logged in
pubKeyId ulong Output parameter for public key object handle
privKeyId ulong 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 ) : ulong
pkcs11 Net.Pkcs11Interop.LowLevelAPI80.Pkcs11 Initialized PKCS11 wrapper
Résultat ulong