From 51a0b96f1dec167fa618c5c180f881bed15d39d6 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 24 Jul 2017 22:25:33 +0200 Subject: [PATCH] Test crypto_hmac_sha256_update() with empty chunks --- test/default/auth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/default/auth.c b/test/default/auth.c index c0b805dc..272039d5 100644 --- a/test/default/auth.c +++ b/test/default/auth.c @@ -54,6 +54,7 @@ main(void) memset(a2, 0, sizeof a2); crypto_auth_hmacsha256_init(&st, key2, sizeof key2); + crypto_auth_hmacsha256_update(&st, NULL, 0U); crypto_auth_hmacsha256_update(&st, c, 1U); crypto_auth_hmacsha256_update(&st, c, sizeof c - 2U); crypto_auth_hmacsha256_final(&st, a2);