I am encrypting buffers using AES-256-CTR encryption. My encryption is working but I have a requirement that I want to make sure I implement correctly. The requirement is as follows:
Given any plaintext of length less that
x, the ciphertext should always be of length
In my example
xis 1 KB but can be anything while consistent.
- The plaintext could range between 1 byte to 1 KB, never larger.
- The length of the plaintext is not know by decryptor.