2013-04-24 Niels Möller <nisse@lysator.liu.se>
+ * salsa20-crypt.c (salsa20_crypt): Deleted cast of memxor
+ argument, no longer needed.
+ * salsa20r12-crypt.c (salsa20r12_crypt): Likewise.
+ * sha3.c (sha3_absorb): Likewise.
+
* memxor.h: Updated prototypes. Drop include of nettle-types.h.
* memxor.c: Include nettle-types.h, for uintptr_t. Replace all
if (length <= SALSA20_BLOCK_SIZE)
{
- memxor3 (c, m, (uint8_t *) x, length);
+ memxor3 (c, m, x, length);
return;
}
- memxor3 (c, m, (uint8_t *) x, SALSA20_BLOCK_SIZE);
+ memxor3 (c, m, x, SALSA20_BLOCK_SIZE);
length -= SALSA20_BLOCK_SIZE;
c += SALSA20_BLOCK_SIZE;
if (length <= SALSA20_BLOCK_SIZE)
{
- memxor3 (c, m, (uint8_t *) x, length);
+ memxor3 (c, m, x, length);
return;
}
- memxor3 (c, m, (uint8_t *) x, SALSA20_BLOCK_SIZE);
+ memxor3 (c, m, x, SALSA20_BLOCK_SIZE);
length -= SALSA20_BLOCK_SIZE;
c += SALSA20_BLOCK_SIZE;
*p ^= LE_READ_UINT64 (data);
}
#else /* !WORDS_BIGENDIAN */
- memxor ((uint8_t *) state->a, data, length);
+ memxor (state->a, data, length);
#endif
sha3_permute (state);