Iterable<int> unpad(int blockSize, Iterable<int> input) { if (input.length % blockSize != 0) { throw Exception('Input length must be multiple of blockSize: $blockSize'); } return input; }