Use unsigned types for sizes in tests.

This commit is contained in:
Frank Denis 2014-07-01 19:33:59 +00:00
parent c87d9f38f8
commit 0e4f4d6205
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ unsigned char c[147 + crypto_box_MACBYTES];
int main(void)
{
int i;
size_t i;
crypto_box_easy(c, m, 131, nonce, bobpk, alicesk);
for (i = 0; i < 131 + crypto_box_MACBYTES; ++i) {

View File

@ -41,7 +41,7 @@ unsigned char mac[crypto_secretbox_MACBYTES];
int main(void)
{
int i;
size_t i;
crypto_secretbox_easy(c, m, 131, nonce, firstkey);
for (i = 0;i < 131 + crypto_secretbox_MACBYTES; ++i) {