Can you help clarify how CTR counter is implemented internally? In my code, I randomly generate 16-byte array and use it to initialize CkCrypt2, how is this data used to calculate initial counter? And also how does counter increase in subsequent blocks?
asked Feb 10 '15 at 23:50
The IV becomes the nonce in CTR mode. The counter is incremented for each subsequent block.
answered Feb 11 '15 at 10:59