From c46ab5821d0fa8c604de52e15009e2b8da5d9c07 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 21 Apr 2014 17:09:52 -0400 Subject: [PATCH] Fixed test. --- auto_tests/crypto_test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_tests/crypto_test.c b/auto_tests/crypto_test.c index 0165d6da..917aa81d 100644 --- a/auto_tests/crypto_test.c +++ b/auto_tests/crypto_test.c @@ -236,8 +236,8 @@ START_TEST(test_large_data) c1len = encrypt_data_symmetric(k, n, m1, sizeof(m1), c1); c2len = encrypt_data_symmetric(k, n, m2, sizeof(m2), c2); - ck_assert_msg(c1len == sizeof(m1) + crypto_box_MACBYTES, "could not encrypt max size"); - ck_assert_msg(c2len == -1, "incorrectly succeeded encrypting massive size"); + ck_assert_msg(c1len == sizeof(m1) + crypto_box_MACBYTES, "could not encrypt"); + ck_assert_msg(c2len == sizeof(m2) + crypto_box_MACBYTES, "could not encrypt"); m1plen = decrypt_data_symmetric(k, n, c1, c1len, m1prime);