TKeyGenParams structure is used by KG_GenerateRegistrationKey and KG_GenerateRegistrationKeyFromProject to generate registration keys.
KeyMode |
(input parameter) mode of registration key (RSA 512/768/1024/2048/3072/4096). It may have the following values (see Registration Features - Common Registration key safety/length value):
RM_512 = 0; RM_768 = 1; RM_1024 = 2; RM_2048 = 3; RM_3072 = 4; RM_4096 = 5;
|
KeyBase |
(input parameter) base of registration key (Base 2/8/16/32/64). It may have the following values (see Registration Features - Common Registration key output base value):
RB_2 = 0; RB_8 = 1; RB_16 = 2; RB_32 = 3; RB_64 = 4;
|
KeyWithHyphens |
(input parameter) add hyphens to the key, set to 1 if true or 0 if false (see Creating Keys);
|
Key |
(input parameter) pointer to the memory where the registration key will be placed. The registration key will be represented as ANSI, null terminated string. Please be sure that the buffer allocated for the registration key has sufficient size, we recommend allocating a buffer at least 2048 bytes long;
|
KeyLen |
(input parameter) size of the registration key buffer; |
RegInfo |
(input parameter) pointer to the memory where the registration name info is placed ;
|
RegInfoLen |
(input parameter) size of registration info; |
UseKeyExpiration |
(input parameter) if the value is 0, then the key does not have expiration, if the value is 1 then the key is time-limited. The key will expire on the date specified in the ExpirationYear, ExpirationMonth, ExpirationDay parameters (see Creating Keys); |
ExpirationYear |
(input parameter) year of key expiration date; |
ExpirationMonth |
(input parameter) month of key expiration date; |
ExpirationDay |
(input parameter) day of key expiration date; |
UseHardwareLocking |
(input parameter) if the key is hardware-locked, set this parameter to 1, otherwise it should be 0 (see Creating Keys);
|
HardwareIDType |
(input parameter) pointer to ANSI, null terminated hardware id string; |
UseExecutionsLimit |
(input parameter) to enable executions limit, set this parameter to 1, otherwise it should be 0 (see Creating Keys);
|
ExecutionsCount |
(input parameter) number of executions to limit the registration key to; |
UseDaysLimit |
(input parameter) to enable days limit, set this parameter to 1, otherwise it should be 0 (see Creating Keys);
|
DaysCount |
(input parameter) number of days to limit the registration key to; |
UseRunTimeLimit |
(input parameter) to enable run-time limit, set this parameter to 1, otherwise it should be 0 (see Creating Keys);
|
RunTimeMinutes |
(input parameter) number of run-time minutes to limit the registration key to; |
UseGlobalTimeLimit |
(input parameter) to enable global time limit, set this parameter to 1, otherwise it should be 0 (see Creating Keys);
|
GlobalTimeMinutes |
(input parameter) number of global time minutes to limit the registration key to; |
UseCountyLimit |
(input parameter) to enable country limit, set this parameter to 1, otherwise it should be 0 (see Creating Keys);
|
CountryCode |
(input parameter) the country code to lock the registration key to (see Enigma API EP_MiscCountryCode to get the code of a particular country); |
UseRegisterAfter |
(input parameter) to enable the Register After limit for the registration key, set this value to 1, otherwise it should be 0. The Register After date is specified in the RegisterAfterYear, RegisterAfterMonth, RegisterAfterDay parameters (see Creating Keys); |
RegisterAfterYear |
(input parameter) year of Register After date; |
RegisterAfterMonth |
(input parameter) month of Register After date; |
RegisterAfterDay |
(input parameter) day of Register After date; |
UseRegisterBefore |
(input parameter) to enable the Register Before limit for the registration key, set this value to 1, otherwise it should be 0. The Register Before date is specified in the RegisterBeforeYear, RegisterBeforeMonth, RegisterBeforeDay parameters (see Creating Keys); |
RegisterBeforeYear |
(input parameter) year of Register Before date; |
RegisterBeforeMonth |
(input parameter) month of Register Before date; |
RegisterBeforeDay |
(input parameter) day of Register Before date; |
EncryptedConstant |
(input parameter) integer constant, obtain it from the project file (see Registration Features - Common Registration, Information for Custom Keys Generator box, Encryption Constant value); |
EncryptedSections |
(input parameter) array of 16-byte length, which points to the encrypted sections that will be decrypted by this key (see Creating Keys); |
PublicKey |
(input parameter) pointer to ANSI, null terminated string, which is a unique constant, should be obtained from the project (see Registration Features - Common Registration, Information for Custom Keys Generator box, Public Key value); |
PrivateKey |
(input parameter) pointer to ANSI, null terminated string, which is a unique constant, should be obtained from the project (see Registration Features - Common Registration, Information for Custom Keys Generator box, Private Key value). |