From 9784038ad043433add2b7f23f58a331349ac5d54 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 25 Dec 2015 02:01:51 +0100 Subject: [PATCH] Check crypto_box_detached() with a small order pk --- test/default/box_easy2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/default/box_easy2.c b/test/default/box_easy2.c index 67478d52..710f997c 100644 --- a/test/default/box_easy2.c +++ b/test/default/box_easy2.c @@ -100,6 +100,9 @@ int main(void) printf("crypto_box_open_easy_afternm() with a huge ciphertext should have failed\n"); } memset(m2, 0, m2_size); + ret = crypto_box_detached(c, mac, m, (unsigned long long) mlen, + nonce, small_order_p, bobsk); + assert(ret == -1); ret = crypto_box_detached(c, mac, m, (unsigned long long) mlen, nonce, alicepk, bobsk); assert(ret == 0);