Test hashing some more in t_fticks.
authorLinus Nordberg <linus@nordu.net>
Thu, 29 Sep 2011 09:23:06 +0000 (11:23 +0200)
committerLinus Nordberg <linus@nordu.net>
Thu, 29 Sep 2011 09:23:06 +0000 (11:23 +0200)
tests/t_fticks.c

index a0e44c3..3a5cce6 100644 (file)
@@ -35,6 +35,10 @@ main (int argc, char *argv[])
 {
   if (_check_hash(MAC1, KEY1, HASH1, HMAC1) != 0)
     return 1;
+  /* Again, for good measure.  (Or rather to make sure there's no
+     state left.)  */
+  if (_check_hash(MAC1, KEY1, HASH1, HMAC1) != 0)
+    return 1;
   if (_check_hash(MAC1_UC, KEY1, HASH1, HMAC1) != 0)
     return 1;
   if (_check_hash(MAC1_APPENDED, KEY1, HASH1, HMAC1) != 0)