The unpad operation should verify that the padding bytes are as expected and
throw an Error if they are not, rather than assuming the bytes are correct.
Use of the wrong cipher key or specification will cause invalid padding so this
is a common mode of failure and we should check for this to alert developers to
the real problem.
Original issue reported on code.google.com by great...@gmail.com on 7 Apr 2012 at 2:50
Original issue reported on code.google.com by
great...@gmail.com
on 7 Apr 2012 at 2:50