MCPcopy Index your code
hub / github.com/f0ng/autoDecoder / formatWithZeroPadding

Method formatWithZeroPadding

src/com/autoDecoder/util/codeEncode.java:336–346  ·  view source on GitHub ↗
(byte[] data, final int blockSize)

Source from the content-addressed store, hash-verified

334 }
335
336 private static byte[] formatWithZeroPadding(byte[] data, final int blockSize) {
337 final int length = data.length;
338 final int remainLength = length % blockSize;
339
340 if (remainLength > 0) {
341 byte[] inputData = new byte[length + blockSize - remainLength];
342 System.arraycopy(data, 0, inputData, 0, length);
343 return inputData;
344 }
345 return data;
346 }
347
348
349

Callers 1

encryptKeyivmodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected