From 386ce83df149bebb00bdbf60a480e696acdf50bb Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 22 Dec 2015 14:32:14 +0100 Subject: [PATCH] Test crypto_onetimeauth_update() with a null size --- test/default/onetimeauth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/test/default/onetimeauth.c b/test/default/onetimeauth.c index 39361516..f97f95c4 100644 --- a/test/default/onetimeauth.c +++ b/test/default/onetimeauth.c @@ -38,6 +38,7 @@ int main(void) memset(a, 0, sizeof a); crypto_onetimeauth_init(&st, rs); crypto_onetimeauth_update(&st, c, 100); + crypto_onetimeauth_update(&st, c, 0); crypto_onetimeauth_update(&st, c + 100, 31); crypto_onetimeauth_final(&st, a); for (i = 0; i < 16; ++i) {