Skip to content
Permalink
Browse files

Add a test

  • Loading branch information...
jedisct1 committed Jun 27, 2019
1 parent a1876f9 commit e4d55a5baacea0f22001fcbf3914acf919b7ccd5
Showing with 4 additions and 0 deletions.
  1. +4 −0 tests/tests.c
@@ -108,6 +108,10 @@ test_hash(void)
hydro_hash_hash(h, hydro_hash_BYTES, msg, sizeof msg, ctx, key);
hydro_bin2hex(hex, sizeof hex, h, hydro_hash_BYTES);
assert_streq("7dfa45ce18210e2422fd658bf7beccb6e534e44f99ae359f4af3ba41af8ca463", hex);
/* total input length is a multiple of the rate */
hydro_hash_hash(h, hydro_hash_BYTES, msg, 13, ctx, key);
hydro_bin2hex(hex, sizeof hex, h, hydro_hash_BYTES);
assert_streq("d57a9800549bb4bab6a06fa6e16e08aad68d7d4313fb69a81b9f5d5af375dbe7", hex);
}

static void

0 comments on commit e4d55a5

Please sign in to comment.
You can’t perform that action at this time.