SetDriverBin

Declaration

Delphi

procedure SetDriverBin(Key: Integer; Value: Pointer; Length: Cardinal); register;

C/C++

void SOPAD_SetDriverBin(UINT32 dwKey, LPVOID lpValue, int nLength)

ActiveX

HRESULT _stdcall SetDriverBin([in] long Key, [in] VARIANT Value);

 

 

Description

Set Driver parameters that holds larg binary data. You can pass those parameters as Key-value, simular to SetDriverString.

E.g. set the biometric real time encryption or decryption  parameter.

Arguments

value : pointer to data  - can be ansi string or binary

Length: integer  -  length the data in bytes

key : int             - the id of the paramter

KeyParameter Description
0Emulation Public1Key Biometric encryption RSA  public-key for the emulation mode
1Resource datavalue of Named resource. Further details can be found SetDriverString with key=6
2Real time PrivateKey1Biometric decryption RSA private-key for the real time decryption

 

Sample

SetDriverBin
//  Enable usage of BiometricPad
SigDev.SetDriverLong(47, 2);


//  Search for Devices
SigDev.configurePad("", true, true, true, ref padsetting);

string devicetyp = SigDev.GetDriverString(0);

if (devicetyp == "StepOver naturaSign Pad Biometric")
{
   //  Encryption is only possible with Testdevices or Biometric-Pads

   ASCIIEncoding encoding = new ASCIIEncoding();
   byte[] b = encoding.GetBytes(Resource1.privateKey1);
   SigDev.SetDriverBin(2, b);
}