diff options
Diffstat (limited to '')
-rw-r--r-- | t/misc-tests.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/t/misc-tests.c b/t/misc-tests.c index 3942bfb..3d1bb2d 100644 --- a/t/misc-tests.c +++ b/t/misc-tests.c @@ -685,10 +685,10 @@ main(void) CHECK("BLAKE2s[key=]", libhashsum_init_blake2s_hasher(&hasher, 0, NULL, NULL, NULL, 0)); CHECK("BLAKE2s[salt=0123456789abcDEF]", libhashsum_init_blake2s_hasher(&hasher, 0, SALT, NULL, NULL, 0)); CHECK("BLAKE2s[pepper=0123456789abcDEF]", libhashsum_init_blake2s_hasher(&hasher, 0, NULL, SALT, NULL, 0)); - CHECK("BLAKE2s[key=0123456789abcDEF]", libhashsum_init_blake2s_hasher(&hasher, 0, NULL, NULL, SALT, 8)); - CHECK("BLAKE2s[KEY=0123456789abcdef0123456789ABCDEF]", libhashsum_init_blake2s_hasher(&hasher, 0, NULL, NULL, SALT, 16)); + CHECK("BLAKE2s[key=0123456789abcDEF]", libhashsum_init_blake2s_hasher(&hasher, 0, NULL, NULL, SALT, 64)); + CHECK("BLAKE2s[KEY=0123456789abcdef0123456789ABCDEF]", libhashsum_init_blake2s_hasher(&hasher, 0, NULL, NULL, SALT, 128)); CHECK("BLAKE2s[key=0123456789abcdef0123456789ABCDEF0123456789abcdef0123456789ABCDEF]", - libhashsum_init_blake2s_hasher(&hasher, 0, NULL, NULL, SALT SALT, 32)); + libhashsum_init_blake2s_hasher(&hasher, 0, NULL, NULL, SALT SALT, 256)); CHECK("BLAKE2b", libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, NULL, 0)); CHECK("BLAKE2b[]", libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, NULL, 0)); CHECK("BLAKE2b[n=64]", libhashsum_init_blake2b_hasher(&hasher, 64, NULL, NULL, NULL, 0)); @@ -697,18 +697,18 @@ main(void) libhashsum_init_blake2b_hasher(&hasher, 0, SALT, NULL, NULL, 0)); CHECK("BLAKE2b[pepper=0123456789abcDEF0123456789abcDEF]", libhashsum_init_blake2b_hasher(&hasher, 0, NULL, SALT, NULL, 0)); - CHECK("BLAKE2b[key=0123456789abcDEF]", libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, SALT, 8)); + CHECK("BLAKE2b[key=0123456789abcDEF]", libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, SALT, 64)); CHECK("BLAKE2b[salt=00000000000000000000000000000000]", libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, NULL, 0)); CHECK("BLAKE2b[pepper=00000000000000000000000000000000]", libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, NULL, 0)); CHECK("BLAKE2b[key=]", libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, NULL, 0)); - CHECK("BLAKE2b[key=0123456789abcdef0123456789ABCDEF]", libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, SALT, 16)); + CHECK("BLAKE2b[key=0123456789abcdef0123456789ABCDEF]", libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, SALT, 128)); CHECK("BLAKE2b[key=0123456789abcdef0123456789ABCDEF0123456789abcdef0123456789ABCDEF]", - libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, SALT SALT, 32)); + libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, SALT SALT, 256)); CHECK("BLAKE2b[key=0123456789abcdef0123456789ABCDEF0123456789abcdef0123456789ABCDEF" "0123456789abcdef0123456789ABCDEF0123456789abcdef0123456789ABCDEF]", - libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, SALT SALT, 64)); + libhashsum_init_blake2b_hasher(&hasher, 0, NULL, NULL, SALT SALT SALT SALT, 512)); #undef CHECK #undef SALT |