Padding verification code now fixed.
Challenge 17 complete, although there seems to be a random bug.