Page 1 of 1

GenKeyExample returns always UNSUPPORTED_NUMBER_OF_BITS = 2

Posted: Sat Nov 12, 2022 3:27 am
by andthe
Dear Admin, I will be very glad if you could help me to understand the GenKeyExample.
When I compile it with Delphi I always a wrong result: UNSUPPORTED_NUMBER_OF_BITS = 2
I can not understand this example if I can not make it useful !!!
Why these parameters are all zero (0)?

//////////////////////////////////////////////////////////////////////////
// !!! this block should be generated by VMProtect License Manager !!! ///
//////////////////////////////////////////////////////////////////////////
g_Algorithm: Longword = ALGORITHM_RSA;
g_nBits: Longword = 0;
g_vModulus: array [0..0] of Byte = (0);
g_vPrivate: array [0..0] of Byte = (0);
g_vProductCode: array [0..0] of Byte = (0);
//////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////

Please, help me to understand this Example and Thank you !!!

Re: GenKeyExample returns always UNSUPPORTED_NUMBER_OF_BITS = 2

Posted: Sat Nov 12, 2022 6:20 am
by Admin
You have to export your licensing parameters from VMP project to the sources of GenKeyExample:
http://vmpsoft.com/vmprotect/user-manual#export