mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Use unsigned types for sizes in tests.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user