From 31d842a432db619666878f397c10a40504cf132c Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 16 Sep 2014 21:20:05 -0700 Subject: [PATCH] Test for (secret)box_easy behavior with a huge input. --- test/default/box_easy.c | 3 +++ test/default/secretbox_easy.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/default/box_easy.c b/test/default/box_easy.c index 09604925..e4ce8a67 100644 --- a/test/default/box_easy.c +++ b/test/default/box_easy.c @@ -42,5 +42,8 @@ int main(void) printf("\n"); } printf("\n"); + + assert(crypto_box_easy(c, m, SIZE_MAX - 1U, nonce, bobpk, alicesk) == -1); + return 0; } diff --git a/test/default/secretbox_easy.c b/test/default/secretbox_easy.c index c01d0179..df85070a 100644 --- a/test/default/secretbox_easy.c +++ b/test/default/secretbox_easy.c @@ -50,5 +50,8 @@ int main(void) if (i % 8 == 7) printf("\n"); } + + assert(crypto_secretbox_easy(c, m, SIZE_MAX - 1U, nonce, firstkey) == -1); + return 0; }