CEX-NET
CEX-NET copied to clipboard
Fix a bug that will corrupt plain data
Although this repo is inactive, this bug will cause data corruption in this case: The plain data length is 16 aligned already, and the plain data's last byte is 0-15. In this case, the code will go into alnSize != inpSize
and cut off some padding by reading last byte, even the data is already 16 aligned and does not need such trim.