mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-24 12:36:01 -07:00
Old tcc versions miscompile while (++in[x])
So, let's just keep things readable, even for compilers.
This commit is contained in:
parent
10edd16b40
commit
ca43a12683
@ -47,8 +47,10 @@ main(void)
|
||||
do {
|
||||
crypto_core_salsa20(output + pos, in, secondkey, c);
|
||||
pos += 64;
|
||||
} while (++in[8]);
|
||||
} while (++in[9]);
|
||||
in[8]++;
|
||||
} while (in[8] != 0);
|
||||
in[9]++;
|
||||
} while (in[9] != 0);
|
||||
|
||||
crypto_hash_sha256(h, output, output_len);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user