并行处理

This commit is contained in:
cheney
2022-09-08 20:24:14 +08:00
parent c563ef91d3
commit 9540858fa3
19 changed files with 372 additions and 200 deletions
@@ -4,7 +4,7 @@ import com.sunyard.SydApiException;
import com.sunyard.sge.bytes.BytesQueue;
public class SydSM4 {
public class SydSM4 implements ISM4 {
private SydApi api;
private int iKeyIndex;
@@ -66,9 +66,6 @@ public class SydSM4 {
}
}
else {
if (null == queue || null == pcData) {
throw new IllegalArgumentException();
}
queue.push(pcData);
if ((queue.getLength()) / 16 < 2) {
return new byte[0];
@@ -78,9 +75,7 @@ public class SydSM4 {
iPkgNum = 2;
return bytes2;
}
}
public byte[] finish() {