Check crypto_box_detached() with a small order pk
This commit is contained in:
parent
2f1cec7352
commit
9784038ad0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user