C# 클래스 Net.Pkcs11Interop.Tests.LowLevelAPI40.Helpers

Helper methods for LowLevelAPI tests.
파일 보기 프로젝트 열기: Pkcs11Interop/Pkcs11Interop 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

CreateDataObject() 공개 정적인 메소드

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
리턴 CKR

GenerateKey() 공개 정적인 메소드

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
리턴 CKR

GenerateKeyPair() 공개 정적인 메소드

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
리턴 CKR

GetUsableSlot() 공개 정적인 메소드

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
리턴 uint