S2C7: PKCS#7 padding validation (+ refactoring).