Commit Graph

53 Commits

Author SHA1 Message Date
Rune Magnussen
a98408c95e Always se long poll() timeout
Many init systems do their own backgrounding so use long timeout
unconditionally. Change suggested by Manuel Domke.
2018-01-04 16:51:48 +01:00
Bill
3268edbf6c Merge pull request #37 from manuel-domke/refactoring
improved error handling for listing devices and nicer output
2017-12-23 11:27:15 -08:00
Manuel Domke
7fae449d27 formatting 2017-12-23 15:41:56 +01:00
Manuel Domke
d8a5473dab removed redundant VEND_ID and PROD_ID 2017-12-23 15:38:32 +01:00
Manuel Domke
6cd6b88b43 improved error handling for listing devices and nicer output 2017-12-23 15:37:35 +01:00
Rune Magnussen
2eebda163d Only force new entropy once a minute when backgrounded
Make the poll-timeout one minute if the option --daemon is used.
This saves a lot og CPU-time.
2017-12-01 16:18:29 +01:00
Rune Magnussen
54101c0de4 Introduce struct opt_struct for parsed options.
Parsed options are now placed in a structure which is passed as
argument to functions reduce the number of parameters. This makes
the call sites simpler. It also makes more informations available
to the functions.
2017-11-30 23:04:22 +01:00
Manuel Domke
15f27862e9 Merge branch 'master' into master 2017-09-20 21:37:56 +02:00
Rune Magnussen
b1c311fe06 Fix compiler-warning from GCC 6.4
Redefining #defines gives a warning. That is trated like an error
with current compiler options.
2017-09-10 09:52:28 +02:00
Manuel Domke
a6bccc6b01 oops, refactored too much 2017-08-29 18:58:16 +02:00
Manuel Domke
fe1d217296 finally renamed constants... 2017-08-29 18:56:09 +02:00
Bill Cox
07efda146a Changed some formatting 2017-08-29 09:20:52 -07:00
Manuel Domke
858139e782 Improved error handling 2017-08-29 17:26:02 +02:00
Manuel Domke
79fd4ae3ae Implemented --serial and --list-devices to specify device to start for 2017-08-29 15:50:58 +02:00
Bill Cox
3e406cfbb2 Initialize Keccak before use 2017-03-26 08:26:15 -07:00
Bill Cox
4f135647f2 Patched Makefile with edits from Rune Magnus 2016-07-01 09:22:50 -07:00
Bill Cox
bfaa38b048 Updates from Rune Magnus 2016-06-29 08:28:37 -07:00
Bill Cox
398fcb013d Changed 64-bit var bytesWritten to totalBytesWritten 2015-12-23 11:57:59 -08:00
Bill Cox
bb14828ea1 Cleanup patches from Rune Magnussen 2015-09-15 03:53:44 -07:00
Bill Cox
d71b1c286b Chaned pid_t to int32 for portability 2015-08-24 04:26:45 -07:00
Bill Cox
d785240e80 Applied daemon patch, thanks to Rune Magnussen 2015-08-18 09:44:00 -07:00
Bill Cox
dbc4dd0db9 Fixed compiler warnings - patch from Rune Magnussen 2015-08-10 07:54:54 -07:00
Bill Cox
d87a49c282 Modified behaviour of output multiplier so that 0 means ouitput all the entropy we generate 2015-07-08 09:51:01 -07:00
Bill Cox
1196eb51cc Updated Makefiles based on feedback from Rune Magnussen <rum@bankdata.dk> 2015-06-29 11:54:02 -07:00
Bill Cox
ffd784bf05 Updates 2015-03-05 21:24:55 -08:00
Bill Cox
2f7727da1e Changed to using 256 bits out for each 512 in by default unless writing to /dev/random 2015-01-15 23:29:15 -08:00
Bill Cox
1006254e2b Restructuring a bit 2014-12-10 13:03:19 -05:00
Bill Cox
aa7ab00e84 Checking timing failures on bit-bang vs loading 2014-11-12 14:42:24 -05:00
Bill Cox
5951fd00dd Added timer to insure I/O operations are fast enough for bit-bang 2014-11-08 10:35:48 -05:00
Bill Cox
c72aec8771 Made output multiplier in 256-bit units 2014-11-03 12:47:32 -05:00
Bill Cox
0e54073c88 Did some testing on the FT240X sync mode bit-bang... all working fine. 2014-11-03 10:15:13 -05:00
Bill Cox
14ab8ffab9 Updated BOM 2014-11-03 07:43:17 -05:00
Bill Cox
1470d67d59 Fixed bug in calling Keccak 2014-11-02 15:55:16 -05:00
Bill Cox
97036593c7 update 2014-11-02 06:27:43 -05:00
Bill Cox
8aeff4f602 update 2014-10-31 16:34:14 -04:00
Bill Cox
24f5520035 Fisrt completed USB key works 2014-10-31 08:12:11 -04:00
Bill Cox
303b3d21d3 updates 2014-10-27 22:27:32 -04:00
Bill Cox
7ef4fc0271 Check each group of 512 bits for having enough entropy 2014-10-26 17:22:47 -04:00
Bill Cox
4b01bd77c3 Got the V1 version of the INM board working 2014-10-26 13:51:22 -04:00
Bill Cox
12a41757fd Force-feed /dev/random 4096 bits to overcome it's weak mixing function 2014-10-25 06:16:10 -04:00
Bill Cox
76e6670b37 updates 2014-10-24 13:07:34 -04:00
Bill Cox
adb775e27f update 2014-10-23 15:01:04 -04:00
Bill Cox
347adf3dc1 Added capability to write entropy to /dev/random 2014-10-22 16:49:08 -04:00
Bill Cox
ab47212b51 updates 2014-10-20 17:48:20 -04:00
Bill Cox
514f7355b6 Added a longest sequence finder 2014-10-20 14:48:23 -04:00
Bill Cox
6113e1dd29 update 2014-10-20 11:35:35 -04:00
Bill Cox
a3da0920e8 Got it working 2014-10-20 07:52:49 -04:00
Bill Cox
7632877b12 update 2014-10-19 14:48:02 -04:00
Bill Cox
9a079fed74 Got the first breadboard working 2014-10-19 11:56:38 -04:00
Bill Cox
f665f965a7 compiles again 2014-10-18 04:40:34 -04:00