how to generate initial vector for counter mode of encryption
i am implementing CTR mode of encryption using AES. i want know how to generate开发者_Go百科 initial vectors(counter blocks) for this mode.
You should generate random IV, and after that increment it with each new block, like 16-byte integer. Also, as far as I remember, some specifications use zero IV for CTR mode.
精彩评论