Test crypto_onetimeauth_update() with a null size

This commit is contained in:
Frank Denis 2015-12-22 14:32:14 +01:00
parent 82831cb7a6
commit 386ce83df1

View File

@ -38,6 +38,7 @@ int main(void)
memset(a, 0, sizeof a); memset(a, 0, sizeof a);
crypto_onetimeauth_init(&st, rs); crypto_onetimeauth_init(&st, rs);
crypto_onetimeauth_update(&st, c, 100); crypto_onetimeauth_update(&st, c, 100);
crypto_onetimeauth_update(&st, c, 0);
crypto_onetimeauth_update(&st, c + 100, 31); crypto_onetimeauth_update(&st, c + 100, 31);
crypto_onetimeauth_final(&st, a); crypto_onetimeauth_final(&st, a);
for (i = 0; i < 16; ++i) { for (i = 0; i < 16; ++i) {