gao.qiang 6 bulan lalu
induk
melakukan
3ef17001d5

+ 1 - 1
base-common/src/main/java/com/ozs/common/utils/stateSecrets/SM4.java

@@ -186,7 +186,7 @@ public class SM4
 		{
 			int p = 16 - input.length % 16;
 			ret = new byte[input.length + p];
-			System.arraycopy(input, 0, ret, 0, p);
+			System.arraycopy(input, 0, ret, 0, input.length);
 			for (int i = 0; i < p; i++) {
 				ret[input.length + i] = (byte) p;
 			}