counter mode

the input to AES are not necessary distinct

first homework: you add index to message, input used for AES during encryption not necessarily distinct .