Can not create serial number: Serial number is too long

Issues related to VMProtect
Post Reply
jokehuang
Posts: 18
Joined: Mon Apr 22, 2019 8:09 am

Can not create serial number: Serial number is too long

Post by jokehuang »

As image, I can't add a Custom Name that it's length 255 to the license.
Attachments
image.png
image.png (77.51 KiB) Viewed 4447 times
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Can not create serial number: Serial number is too long

Post by Admin »

What RSA key length do you use?
jokehuang
Posts: 18
Joined: Mon Apr 22, 2019 8:09 am

Re: Can not create serial number: Serial number is too long

Post by jokehuang »

Admin wrote:What RSA key length do you use?
2048 bits
jokehuang
Posts: 18
Joined: Mon Apr 22, 2019 8:09 am

Re: Can not create serial number: Serial number is too long

Post by jokehuang »

I think I've figured out that a 2048-bit key can only encrypt up to 256 bytes of data.

After subtracting 11 bytes of nMinPadding, the remaining 245 bytes are available.
Admin
Site Admin
Posts: 2566
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Can not create serial number: Serial number is too long

Post by Admin »

2048 bits = 256 bytes - this is the maximum size of a serial number and in your case it isn't enought to store all required information (include the value of the "Name" field)
Post Reply