The enclosed emulator fork creates a one-byte-shorter array when the RSA engine is used in encryption mode. The corresponding original issue in the upstream version of jCardSim: https://github.com/licel/jcardsim/issues/106.
It's quite interesting, that even though the issue was never fixed in the upstream GitHub repository, the 'com.licel:jcardsim:3.0.5' maven package creates buffer arrays of a correct length.
The enclosed emulator fork creates a one-byte-shorter array when the RSA engine is used in encryption mode. The corresponding original issue in the upstream version of jCardSim: https://github.com/licel/jcardsim/issues/106.
It's quite interesting, that even though the issue was never fixed in the upstream GitHub repository, the 'com.licel:jcardsim:3.0.5' maven package creates buffer arrays of a correct length.
Corresponding pull request: https://github.com/ph4r05/jcardsim/pull/1