Closed PabloGN closed 5 years ago
you are correct about the time , i will fix that.
now about the padded length
plainLength % N_BLOCK == 0
the standard for encryption on PKCS7 padding (including AES CSB) is to always pad at least 1 byte.
if the plaintext is equal to a multiple of N_BLOCK then a full block of padding is added.
https://tools.ietf.org/html/rfc2315 page 21, section 2
Thank you!
padedLength error in aes.pde (Arduino code) When plainLength doesn't need to round up (
plainLength % N_BLOCK == 0
) padedLength is greater than plainLength.Time measure
Serial.println(micros() - ms);
adds the time to send printed string. It should be: