Good day :)
I'm pretty new to both C++ and Block Cipher encryption, and I am currently in the process of writing a decryption function for AES (16 byte seed / 16 byte blocks). All is going well, but my total data size is not always a multiple of my block size. I'm wondering what the best way to handle left-over data at the end of my data.
I'm using Crypto++ for the AES library.
The ProcessBlock() function takes an Input and Output char array. I'm assuming it is expecting them to be at least big enough as the block size.
TL:DR;
What would be the best way to process all 16 byte blocks in a block cipher, and then also process the leftover data?