|
@@ -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;
|
|
|
}
|