Zuc256算法验证完毕,applet中测试加解密38字节文本成功;位置加密调用zuc256算法,返回值符合预期,与样例程序一致。
This commit is contained in:
@@ -13,7 +13,8 @@ import org.globalplatform.SecureChannel;
|
||||
*/
|
||||
public class XwSecurity extends Applet {
|
||||
|
||||
public static final byte INS_PROCESS_DATA = (byte)0xE3;
|
||||
//todo test
|
||||
public static final byte INS_PROCESS_DATA_TEST = (byte)0xE3;
|
||||
|
||||
public static final byte INS_LOCATION_ENCRYPT = (byte)0xCA;
|
||||
|
||||
@@ -72,13 +73,14 @@ public class XwSecurity extends Applet {
|
||||
// break;
|
||||
|
||||
|
||||
case INS_PROCESS_DATA:
|
||||
method.processData(apdu);
|
||||
//todo test
|
||||
case INS_PROCESS_DATA_TEST:
|
||||
method.testZuc256(apdu);
|
||||
break;
|
||||
|
||||
|
||||
case INS_LOCATION_ENCRYPT:
|
||||
len = method.processDataFake(buf, off, len, key_store_byte);
|
||||
len = method.locationEncryptZuc(buf, off, len, key_store_byte);
|
||||
apdu.setOutgoingAndSend(off, len);
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user