Use unsigned types for sizes in tests.
This commit is contained in:
parent
c87d9f38f8
commit
0e4f4d6205
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user