mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-29 05:07:13 +09:00
Test for (secret)box_easy behavior with a huge input.
This commit is contained in:
@@ -42,5 +42,8 @@ int main(void)
|
||||
printf("\n");
|
||||
}
|
||||
printf("\n");
|
||||
|
||||
assert(crypto_box_easy(c, m, SIZE_MAX - 1U, nonce, bobpk, alicesk) == -1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -50,5 +50,8 @@ int main(void)
|
||||
if (i % 8 == 7)
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
assert(crypto_secretbox_easy(c, m, SIZE_MAX - 1U, nonce, firstkey) == -1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user