修改异常信息

This commit is contained in:
junj2.liang 2022-09-09 14:49:50 +08:00
parent 6b5d6633a6
commit bc886998c7

View File

@ -27,10 +27,10 @@ public class SydSM4Mac implements ISM4Mac {
int length = pcData.length;
byte[] pcdataResult = pcData;
if (is_finished) {
throw new SydApiException(-1);
throw new SydApiException(0x8007);
}
if (length > 4064) {
throw new SydApiException(-1);
throw new SydApiException(0x8006);
}
if (0 == queue.getLength()) {
if (length < 16) {