salsa20: initialize partial block
A compiler trying to be too smart could notice that we are shifting ununitialized data (even though we then discard it), and apply unwanted optimizations.
This commit is contained in:
parent
63a46474e4
commit
12023defc8
@ -5,7 +5,7 @@ if (bytes > 0) {
|
|||||||
__m128i diag3 = _mm_loadu_si128((const __m128i *) (x + 12));
|
__m128i diag3 = _mm_loadu_si128((const __m128i *) (x + 12));
|
||||||
__m128i a0, a1, a2, a3, a4, a5, a6, a7;
|
__m128i a0, a1, a2, a3, a4, a5, a6, a7;
|
||||||
__m128i b0, b1, b2, b3, b4, b5, b6, b7;
|
__m128i b0, b1, b2, b3, b4, b5, b6, b7;
|
||||||
uint8_t partialblock[64];
|
uint8_t partialblock[64] = { 0 };
|
||||||
|
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user