Closed tomgey closed 5 years ago
What problem does this solves?
Whenever the decrypted data had no padding, on removing the padding ret.lastIndexOf(0x80)
returned -1 which resulted in returning empty data. It could also possibly return only a part of the decrypted data if there is no padding and somewhere in the data the byte 0x80 .
Fix removing of ISO padding when no padding was added.