in reply to Trying to decode aes-128-ctr
Welcome starless,
If you do your 'while' loop reading 16 bytes at a time it may work, but if the end of the buffer is not exactly 16 bytes, you have to pad with "\0" to get exactly 16 bytes.
Regards...Ed
"Well done is better than well said." - Benjamin Franklin
|
|---|