summaryrefslogtreecommitdiff
path: root/auto_tests/crypto_test.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-04-21 17:09:52 -0400
committerirungentoo <irungentoo@gmail.com>2014-04-21 17:09:52 -0400
commitc46ab5821d0fa8c604de52e15009e2b8da5d9c07 (patch)
tree7d4df776547f4a59a4e006e0e34d12af4c1dc147 /auto_tests/crypto_test.c
parent496d4fe203a51769be47f42df50b41db94f4358a (diff)
Fixed test.
Diffstat (limited to 'auto_tests/crypto_test.c')
-rw-r--r--auto_tests/crypto_test.c4
1 files 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)
236 c1len = encrypt_data_symmetric(k, n, m1, sizeof(m1), c1); 236 c1len = encrypt_data_symmetric(k, n, m1, sizeof(m1), c1);
237 c2len = encrypt_data_symmetric(k, n, m2, sizeof(m2), c2); 237 c2len = encrypt_data_symmetric(k, n, m2, sizeof(m2), c2);
238 238
239 ck_assert_msg(c1len == sizeof(m1) + crypto_box_MACBYTES, "could not encrypt max size"); 239 ck_assert_msg(c1len == sizeof(m1) + crypto_box_MACBYTES, "could not encrypt");
240 ck_assert_msg(c2len == -1, "incorrectly succeeded encrypting massive size"); 240 ck_assert_msg(c2len == sizeof(m2) + crypto_box_MACBYTES, "could not encrypt");
241 241
242 m1plen = decrypt_data_symmetric(k, n, c1, c1len, m1prime); 242 m1plen = decrypt_data_symmetric(k, n, c1, c1len, m1prime);
243 243