[Soekris] VPN 1401 entropy output

2013-02-14 Thread Chris Wadge
Hello all,

 Hello, I'm interested in the VPN 1401, primarily for use as a HRNG 
with perhaps some light crypto acceleration. However, after reading 
through multiple white papers, I've been unable to determine the rate of 
entropy provided by the Hifn 7955. Does anyone have any real-world 
numbers to show how much entropy is generated by this device?  Not a 
mailing list subscriber, so please reply directly. ;)

All the best,
-Chris
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] VPN 1401 entropy output

2013-02-14 Thread Patrick Lamaiziere
Le Thu, 07 Feb 2013 15:29:28 -0800,
Chris Wadge cwa...@gmail.com a écrit :

 Hello all,
 
  Hello, I'm interested in the VPN 1401, primarily for use as a
 HRNG with perhaps some light crypto acceleration. However, after
 reading through multiple white papers, I've been unable to determine
 the rate of entropy provided by the Hifn 7955. Does anyone have any
 real-world numbers to show how much entropy is generated by this
 device?  Not a mailing list subscriber, so please reply directly. ;)

I don't know the rate of the chipset but this depends how the driver
collects entropy from the device. On FreeBSD (and I guess OpenBSD), it
collects 16 bits of random bits each hz/100 ticks. A tick is 1/hz
seconds.

So with the default value of hz = 1000 on FreeBSD, the rate is 32 bits
each 10 milliseconds.

Regards.
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Clock losing time on Net5501

2013-02-14 Thread Stuart Henderson
On 2013-02-13, Christian Weisgerber na...@mips.inka.de wrote:
 Joakim Aronius joa...@aronius.se wrote:

 [OpenBSD]
 I have not had time to look into the 'new' rc.d controlsystem for
 starting and stopping services but a cronjob with '/etc/rc.d/ntpd
 restart' should do the same thing as a reboot.. But I could not find
 anything on special handling like writing hw clock during shutdown,
 could be internal in ntpd.

 ntpd(8) doesn't have anything to do with it.  The hardware clock
 is set by the boot(9) call when halting/rebooting the system.

 settimeofday(2) and clock_settime(2) will also set the hardware
 clock.  However, only ntpd -s calls settimeofday, once at startup.
 In normal operation, ntpd uses adjtime(2), which does not touch the
 hardware clock.

So, in theory, this should force it to be written:

# date $(date +%Y%m%d%H%M.%S)

___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Clock losing time on Net5501

2013-02-14 Thread Greg Troxel

Stuart Henderson s...@spacehopper.org writes:

 So, in theory, this should force it to be written:

 # date $(date +%Y%m%d%H%M.%S)

Yes, but that will set fractional seconds to zero.  You probably want a
C program that does gettimeofday()/settimeofday()


pgp5eB7CUHWfC.pgp
Description: PGP signature
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech