C# Класс Net.Pkcs11Interop.Tests.LowLevelAPI80.Helpers

Helper methods for LowLevelAPI tests.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

CreateDataObject() публичный статический Метод

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
Результат CKR

GenerateKey() публичный статический Метод

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
Результат CKR

GenerateKeyPair() публичный статический Метод

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
Результат CKR

GetUsableSlot() публичный статический Метод

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
Результат ulong