new对象(short、byte数组)改为调用JCSystem.makeTransientXxxArray放到ram里面;
makeTransientXxxArray类型改为MEMORY_TYPE_TRANSIENT_RESETMEMORY_TYPE_TRANSIENT_RESET
This commit is contained in:
@@ -29,7 +29,8 @@ public class XwSecurity extends Applet {
|
||||
|
||||
public XwSecurity(byte[] bArray, short bOffset, byte bLength) {
|
||||
// TODO Auto-generated constructor stub
|
||||
method = new Method();
|
||||
method = new Method(); //todo new?
|
||||
// key store -> flash
|
||||
key_store_byte = new byte[80];
|
||||
|
||||
register(bArray, (short)(bOffset + 1), bArray[bOffset]);
|
||||
@@ -37,6 +38,7 @@ public class XwSecurity extends Applet {
|
||||
|
||||
public static void install(byte[] bArray, short bOffset, byte bLength)
|
||||
{
|
||||
//todo new?
|
||||
// GP-compliant JavaCard applet registration
|
||||
new XwSecurity(bArray, bOffset, bLength);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user