Re: /dev/random and mcrypt

From: Date: Tue, 25 Jul 2000 22:17:10 +0000
Subject: Re: /dev/random and mcrypt
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-26118@lists.php.net to get a copy of this message
On Wed, 26 Jul 2000, Derick Rethans wrote: > Hello, > > I encoutered some strange problem I though. Sascha's mcrypt_create_iv > code read from /dev/random the requested nr of bytes for the IV, but > sometimes only 2 bytes could be read, and so the function returned an IV > of 2 (and not the requested length). I suspect this has something to do > that /dev/random didn't have enough bytes ready. Can somebody verify > that this could be possible? Fixed in CVS. We repeat the read call until the buffer is filled. - Sascha

« previous php.dev (#26118) next »