开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜