Test for (secret)box_easy behavior with a huge input.

This commit is contained in:
Frank Denis 2014-09-16 21:20:05 -07:00
parent 877bf76716
commit 31d842a432
2 changed files with 6 additions and 0 deletions

View File

@ -42,5 +42,8 @@ int main(void)
printf("\n"); printf("\n");
} }
printf("\n"); printf("\n");
assert(crypto_box_easy(c, m, SIZE_MAX - 1U, nonce, bobpk, alicesk) == -1);
return 0; return 0;
} }

View File

@ -50,5 +50,8 @@ int main(void)
if (i % 8 == 7) if (i % 8 == 7)
printf("\n"); printf("\n");
} }
assert(crypto_secretbox_easy(c, m, SIZE_MAX - 1U, nonce, firstkey) == -1);
return 0; return 0;
} }