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
Key | Parameter | Â Description |
---|---|---|
0 | Emulation Public1Key | Â Biometric encryption RSAÂ public-key for the emulation mode |
1 | Resource data | value of Named resource. Further details can be found SetDriverString with key=6 |
2 | Real time PrivateKey1 | Biometric 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); }