When encrypting data that is not an even multiple of the block size do I have to send a complete las

Posted by WilliamKF on Stack Overflow See other posts from Stack Overflow or by WilliamKF
Published on 2010-05-16T22:18:35Z Indexed on 2010/05/16 22:20 UTC
Read the original article Hit count: 181

Filed under:
|
|

If I am using a block cipher such as AES which has a block size of 128 bits, what do I do if my data is not an even multiple of 128 bits? I am working with packets of data and do not want to change the size of my packet when encrypting it, yet my data is not an even multiple of 128?

Does the AES block cipher allow handling of a final block that is short without changing the size of my message once encrypted?

© Stack Overflow or respective owner

Related posts about encryption

Related posts about aes