Re: urandom is too slow

2012-11-02 Thread Theodore Ts'o
On Fri, Nov 02, 2012 at 03:10:05AM +0200, Lasse Kärkkäinen wrote: > Thank you for your answers, they should be very helpful for someone > who is actually blanking or shredding their disks. However, I am > just genuinely interested on why is no better CSPRNG algorithm used > in the kernel (is it sim

Re: urandom is too slow

2012-11-01 Thread Lasse Kärkkäinen
On 30.10.2012 23:38, Alan Cox wrote: If you want to wipe a disk issue a security erase command via hdparm. There is no guarantee that simply writing crap all over it will re-use the same sectors of physical media, and for a flash drive it causes massive wear and takes forever while a security e

Re: urandom is too slow

2012-10-30 Thread Alan Cox
> If you just want to wipe a disk, you shouldn't be using /dev/urandom for that > purpose. If you want to wipe a disk issue a security erase command via hdparm. There is no guarantee that simply writing crap all over it will re-use the same sectors of physical media, and for a flash drive it cause

Re: urandom is too slow

2012-10-30 Thread Pádraig Brady
On 10/30/2012 06:54 PM, Theodore Ts'o wrote: On Tue, Oct 30, 2012 at 04:55:22PM +0200, Lasse Kärkkäinen wrote: Apparently there has been little or no development on urandom even though the device is in widespread use for disk shredding and such use. The device emits data at rather slow rate of 1

Re: urandom is too slow

2012-10-30 Thread Theodore Ts'o
On Tue, Oct 30, 2012 at 04:55:22PM +0200, Lasse Kärkkäinen wrote: > Apparently there has been little or no development on urandom even > though the device is in widespread use for disk shredding and such > use. The device emits data at rather slow rate of 19 MB/s even on > modern hardware where oth

urandom is too slow

2012-10-30 Thread Lasse Kärkkäinen
Apparently there has been little or no development on urandom even though the device is in widespread use for disk shredding and such use. The device emits data at rather slow rate of 19 MB/s even on modern hardware where other software-based PRNGs could do far better. An even better option see