I'm working on image encryption using AES algorithm in MATLAB (128 bits, works by processing blocks of 16 bytes, pure implementation), I'm having some difficulties like making a loup that takes every 4*4 matrix from the general matrix (n*m)

ex: I have an image size=17666, so (17666/16)= 1104*16 + 2, so 1105 ciphertexts corresponding to my 1104 first block encrypted as they are, followed by the last (2 bytes), so how to complete the last by filling in with zeros to obtain a block of 16 bytes.

More Himich Ayoub's questions See All
Similar questions and discussions