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 {
|
do {
|
||||||
crypto_core_salsa20(output + pos, in, secondkey, c);
|
crypto_core_salsa20(output + pos, in, secondkey, c);
|
||||||
pos += 64;
|
pos += 64;
|
||||||
} while (++in[8]);
|
in[8]++;
|
||||||
} while (++in[9]);
|
} while (in[8] != 0);
|
||||||
|
in[9]++;
|
||||||
|
} while (in[9] != 0);
|
||||||
|
|
||||||
crypto_hash_sha256(h, output, output_len);
|
crypto_hash_sha256(h, output, output_len);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user