[Cryptech-Commits] [test/novena_trng] 01/01: (1) Fixed line lengths. Added targets to extract fromm.

git at cryptech.is git at cryptech.is
Sat Dec 20 08:02:38 UTC 2014


This is an automated email from the git hooks/post-receive script.

joachim at secworks.se pushed a commit to branch master
in repository test/novena_trng.

commit dcaa8654ae6f8bd22d4ccc07453ac8438bdbb350
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Sat Dec 20 09:02:30 2014 +0100

    (1) Fixed line lengths. Added targets to extract fromm.
---
 src/sw/trng_extract.py | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/sw/trng_extract.py b/src/sw/trng_extract.py
index 9492f53..fdba24a 100755
--- a/src/sw/trng_extract.py
+++ b/src/sw/trng_extract.py
@@ -333,19 +333,24 @@ def main():
 
     parser = argparse.ArgumentParser()
 
-    parser.add_argument('-d', '--debug', dest='debug', action='store_true',
+    parser.add_argument('-d', '--debug', dest='debug',
+                        action='store_true',
                         help='Pring debug information.')
 
-    parser.add_argument('-v', '--verbose', dest='verbose', action='store_true',
+    parser.add_argument('-v', '--verbose', dest='verbose',
+                        action='store_true',
                         help='Increase verbosity.')
 
     parser.add_argument('-i', dest='device', default=I2C_DEVICE,
-                        help='I2C device name (default ' + I2C_DEVICE + ')')
+                        help='I2C device name (default '
+                        + I2C_DEVICE + ')')
 
     parser.add_argument('-n', dest='num_words', default=NUM_WORDS,
                         help='Number of 32-bit words to extract (default ' +
                         str(NUM_WORDS) + ')')
 
+    parser.add_argument('target',
+                        help='target to extract from, "rng", "rosc", or "avalanche"')
 
     args = parser.parse_args()
     DEBUG = args.debug



More information about the Commits mailing list