gao.qiang 4 miesięcy temu
rodzic
commit
8251144986

+ 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, input.length);
+			System.arraycopy(input, 0, ret, 0, p);
 			for (int i = 0; i < p; i++)
 			{
 				ret[input.length + i] = (byte) p;