Subject: Re: arc4random(9)
To: None <tech-kern@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 06/09/2002 23:32:08
>> Why do you need a cryptographically strong generator for IVs?
> CBC's IV's need to be unpredictable to avoid the recently discovered
> CBC "oracle" attack. [...explanation...]
Well, it's a relatively weak attack; it's chosen-plaintext, if nothing
else. Nonetheless, it's interesting.
It also isn't defeated by using unpredictable IVs. The only way a
predictable IV makes any of it any easier is that a tiny piece of the
computation can be done in advance, by predicting the IV - but it's an
utterly trivial piece, just one XOR.
...or am I missing something?
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B