aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Strömbergson <joachim@secworks.se>2014-05-08 17:46:02 +0200
committerJoachim Strömbergson <joachim@secworks.se>2014-05-08 17:46:02 +0200
commit754458f63b44424b70dc0a245922cc45f0f0109b (patch)
tree4f3480c0b8fd31ecd6fc075c1593eaf2d3c84515
parent4d75110afd1fc6fecc7d02409aca42346fc4ef27 (diff)
Fixed error in (c). Drastically reduced processing delay. Adding missing expected digest for SHA-384.
-rwxr-xr-xsrc/sw/hash_tester.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sw/hash_tester.py b/src/sw/hash_tester.py
index 2ca0aab..c9da8ed 100755
--- a/src/sw/hash_tester.py
+++ b/src/sw/hash_tester.py
@@ -18,7 +18,7 @@
#
#
# Author: Joachim Strömbergson
-# Copyright (c) 2014, Secworks Sweden AB
+# Copyright (c) 2014, SUNET
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
@@ -73,7 +73,7 @@ STOP_BITS = 1
VERBOSE = False
# Delay times we wait
-PROC_DELAY_TIME = 0.05
+PROC_DELAY_TIME = 0.0001
COMM_DELAY_TIME = 0.05
# Memory map.
@@ -898,9 +898,9 @@ def tc10(ser):
tc10_256_expected = [0x3928e184, 0xfb8690f8, 0x40da3988, 0x121d31be,
0x65cb9d3e, 0xf83ee614, 0x6feac861, 0xe19b563a]
- tc10_384_expected = [0xcb00753f, 0x45a35e8b, 0xb5a03d69, 0x9ac65007,
- 0x272c32ab, 0x0eded163, 0x1a8b605a, 0x43ff5bed,
- 0x8086072b, 0xa1e7cc23, 0x58baeca1, 0x34c825a7]
+ tc10_384_expected = [0x09330c33, 0xf71147e8, 0x3d192fc7, 0x82cd1b47,
+ 0x53111b17, 0x3b3b05d2, 0x2fa08086, 0xe3b0f712,
+ 0xfcc7c71a, 0x557e2db9, 0x66c3e9fa, 0x91746039]
tc10_512_expected = [0x8e959b75, 0xdae313da, 0x8cf4f728, 0x14fc143f,
0x8f7779c6, 0xeb9f7fa1, 0x7299aead, 0xb6889018,