vi Contents
4.5 Administrative Functions ..................... 31
4.5.1 Function: SglReadProductId ............... 31
4.5.2 Function: SglWriteProductId ............... 32
4.5.3 Function: SglWriteKey .................. 33
4.5.4 Function: SglReadConfig ................ 34
4.6 Return Values ........................... 36
5 Encryption, Signing and Key Management 37
6 Programming Examples 39
6.1 Function SglAuthent ....................... 39
6.1.1 C/C++ ........................... 39
6.1.2 Delphi ........................... 39
6.1.3 Visual Basic ....................... 40
6.2 Function SglSearchLock ..................... 42
6.2.1 C/C++ ........................... 42
6.2.2 Delphi ........................... 42
6.2.3 Visual Basic ....................... 43
6.3 Function SglReadSerialNumber ................. 44
6.3.1 C/C++ ........................... 44
6.3.2 Delphi ........................... 44
6.3.3 Visual Basic ....................... 45
6.4 Function SglReadData ...................... 46
6.4.1 C/C++ ........................... 46
6.4.2 Delphi ........................... 46
6.4.3 Visual Basic ....................... 47
6.5 Function SglWriteData ...................... 49
6.5.1 C/C++ ........................... 49
6.5.2 Delphi ........................... 49
6.5.3 Visual Basic ....................... 50
6.6 Challenge-Response-Authentificationof a SG-Lock ....... 52
6.6.1 C/C++ ........................... 52
7 Technical Data 55
7.1 SG-Lock U2/U3/U4 ........................ 55