doris7789 / crypto-js

Automatically exported from code.google.com/p/crypto-js
0 stars 0 forks source link

Unpad should throw Error if input in Invalid #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
Changes related to this issue have been release in v2.5.4. Please update this 
issue if all the requirements have been met.

Original comment by Jeff.Mott.OR on 30 May 2012 at 2:16