注释改一改
This commit is contained in:
@@ -10,9 +10,6 @@ import javacard.framework.Util;
|
||||
/**
|
||||
*/
|
||||
public class Method {
|
||||
// ======= 已按你提供的数据填充 =======
|
||||
|
||||
|
||||
// todo 写固定值在代码里了
|
||||
// 加密密钥0: 32字节
|
||||
private static final byte[] ZUC256_ENC_KEY_0 = {
|
||||
@@ -76,7 +73,7 @@ public class Method {
|
||||
|
||||
// 输入数据缓冲区最大值
|
||||
static final short MAX_DATA_BLOCK_SIZE = 128;
|
||||
// 运行时缓冲:放RAM,避免写EEPROM
|
||||
// 运行时缓冲
|
||||
byte[] ctx_buf;
|
||||
short ctx_buflen;
|
||||
|
||||
@@ -1541,7 +1538,6 @@ public class Method {
|
||||
// System.arraycopy(out, 4, newOut, 0, out.length - 4);
|
||||
// }
|
||||
// out = newOut;
|
||||
// 这里C实现就是直接指针+4的。JavaSE实现搞这个new干嘛。。
|
||||
outPos += 4;
|
||||
}
|
||||
}
|
||||
@@ -1616,8 +1612,6 @@ public class Method {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 清理上下文
|
||||
// Arrays.fill(this.buf, (byte) 0);
|
||||
for(short i=0; i<4; i++) {
|
||||
@@ -1633,7 +1627,6 @@ public class Method {
|
||||
LFSR_hi[i] = 0;
|
||||
}
|
||||
|
||||
|
||||
// this.state.R1 = 0;
|
||||
// this.state.R2 = 0;
|
||||
// R1、R2 清零
|
||||
|
||||
Reference in New Issue
Block a user