You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Util.arrayCompare() (in Jcardsim) compares unsigned byte values which is nice but incompatible with real cards by NXP and Infineon which compare signed byte values. The Javadoc does not mention explicitly whether signed or unsigned values will be used for comparision, which makes it unlikely that any implementation on cards would use unsigned values. Unfortunately bytes are signed in Java.
Util.arrayCompare() (in Jcardsim) compares unsigned byte values which is nice but incompatible with real cards by NXP and Infineon which compare signed byte values. The Javadoc does not mention explicitly whether signed or unsigned values will be used for comparision, which makes it unlikely that any implementation on cards would use unsigned values. Unfortunately bytes are signed in Java.
As a fix you can probably just remove the conversion to a unsigned short value in https://github.com/licel/jcardsim/blob/master/src/main/java/com/licel/jcardsim/framework/UtilProxy.java#L196 and https://github.com/licel/jcardsim/blob/master/src/main/java/com/licel/jcardsim/framework/UtilProxy.java#L197
The text was updated successfully, but these errors were encountered: