Merge remote-tracking branch 'origin/dev-1.0' into dev-1.0

This commit is contained in:
cheney 2022-08-31 17:32:31 +08:00
commit 711f7d4360

View File

@ -63,7 +63,7 @@ public class SydApiSM4 {
} else {
if (16 > pcData.length + sourceWrap.array().length) {
ByteBuffer bufferResult = ByteBuffer.allocate(sourceWrap.array().length + plength);
bufferResult.put(sourceWrap);
bufferResult.put(SydSM4Mac.bytebuffer2ByteArray(sourceWrap));
bufferResult.put(pcData);
sourceWrap = bufferResult;
} else if ((pcData.length + sourceWrap.array().length) % 16 == 0) {