refactoring PaddingOracle.java