ash2005 / jcardsim

Automatically exported from code.google.com/p/jcardsim
0 stars 1 forks source link

Bug in ByteContainer.java #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The return statement in getBigInteger method must be changed to this:
return new BigInteger(1, data);

Otherwise the RSA decryption won't work correctly. Modulus will always be 
smaller than the encrypted data and 'input data too large' exception will be 
thrown.

Original issue reported on code.google.com by smbl64@gmail.com on 3 Feb 2013 at 8:07

GoogleCodeExporter commented 9 years ago

Original comment by jcard...@licel.ru on 1 Jun 2013 at 2:45