Hot answers tagged initialization-vector
2
To answer your specific questions:
From reading around I understand that ... encrypting a counter and use that as the IV is OK,
is that true?
For CBC mode, that is absolutely true, as long as the key that you use to encrypt the counter is secret (that is, not known to any possible adversary).
Should I start in random number?
Actually, that's ...
1
Have you considered generating the IV in a cryptographically pseudorandom way? This approach makes it easiest to be sure that you're not introducing some subtle weakness in your IV selection.
I would start by benchmarking how fast it is to use RandomNumberGenerator. If that's fast enough, job done. I would not give up on that idea until you know that it ...
Only top voted, non community-wiki answers of a minimum length are eligible