![SG Intec Ltd & Co KG SG-Lock Developer'S Manual Download Page 35](http://html1.mh-extra.com/html/sg-intec-ltd-and-co-kg/sg-lock/sg-lock_developers-manual_1250994035.webp)
Chapter 4: SG-Lock API
29
Parameters
ProductId
Indicates the ProductId of the SG-Lock
AppSignKey
The 128-bit key used by the application for sign-
ing and verification. Pointer to an array of 4 in-
teger values of 32-bit. Only needed in combined
mode otherwise set 0.
LockSignKeyNum
Number of 128-bit key in SG-Lock for signing
and verification.
Mode
working mode
0 - create signature
1 - verify signature
LockSignInterval
Indicates the partitioning of computing power
between SG-Lock and application (PC-CPU). 0
is SG-Lock only. If >0 the value is used as the
power of 2, where the result of that determines
which block index is signed or verified by the
SG-Lock. E.g. value= 8, 2 ˆ8=256, that means the
first and after that every 256th block is processed
by the SG-Lock and all others by the application
(PC-CPU). That means 1/256= 0.4% of the task
is done by the SG-Lock and 99.6% by the PC-
CPU. The result is a very high acceleration of the
process.
DataLen
Count of 32-bit values to process in data array.
Data
Pointer to the array of 32-bit values to sign or
verify.
Signature
Pointer to an array of 2 integers of 32-bit where
the created signature is given back (signing
mode) or where the signature is given to the func-
tion for verification (verify mode).
Summary of Contents for SG-Lock
Page 2: ......
Page 22: ......
Page 60: ......
Page 62: ...56 Chapter 7 Technical Data Notes ...
Page 63: ...Chapter 7 Technical Data 57 ...