spaniakos / AES

AES for microcontrollers (Arduino & Raspberry pi)
http://spaniakos.github.io/AES/
GNU Affero General Public License v3.0
126 stars 55 forks source link

Padding was calculated incorrectly #15

Open Dzitu opened 7 years ago

Dzitu commented 7 years ago

in case size was multiple of N_BLOCK full block of padding should be used. Instead no padding was applied. Issue is fixed now.

spaniakos commented 7 years ago

will review and approve! thanks

spaniakos commented 6 years ago

your suggestion is correct but there is a problem we need to modify the bool AES::CheckPad(byte* in,int lsize) as well. You are free to do it if you want so i can accept the code, or i will make the changes.

thank you.