}
return ret;
}
-static inline void store64(const unsigned char* x, php_hash_uint64 val) {
+static inline void store64(unsigned char* x, php_hash_uint64 val) {
unsigned char i;
for (i = 0; i < 8; ++i) {
x[i] = val & 0xFF;
val >>= 8;
}
}
-static inline void xor64(const unsigned char* x, php_hash_uint64 val) {
+static inline void xor64(unsigned char* x, php_hash_uint64 val) {
unsigned char i;
for (i = 0; i < 8; ++i) {
x[i] ^= val & 0xFF;
}
{ // i step (see [Keccak Reference, Section 2.3.5])
- unsigned char j;
+ unsigned char j;
for (j = 0; j < 7; ++j) {
if (LFSR86540(&LFSRstate)) {
php_hash_uint64 bitPos = (1<<j) - 1;