SCP11 defined by GlobalPlatform.
If the provider supports it, it can be exist on any version of javacard that supprts the ECDH alogrithm.
Code: Select all
EventSourcesrc= IOService.getInstance(IO_SPI);
//Register applet as MessageListenerfor the specified src
EventRegistry.getEventRegistry(src).register(this);
Code: Select all
while (true) {
try {
bbb = JCSystem.makeTransientByteArray(memsize, JCSystem.MEMORY_TYPE_TRANSIENT_DESELECT);
allmemsize += memsize;
if(memsize != 0x7fff)
break;
} catch (CardRuntimeException ex) {
memsize -= 1;
continue;
}
}