|
|
@ -83,19 +83,6 @@ static void init_Xhash_contexts() |
|
|
|
sph_echo512_init(&base_contexts.echo1); |
|
|
|
sph_echo512_init(&base_contexts.echo1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
* Encode a length len/4 vector of (uint32_t) into a length len vector of |
|
|
|
|
|
|
|
* (unsigned char) in big-endian form. Assumes len is a multiple of 4. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
static inline void |
|
|
|
|
|
|
|
be32enc_vect(uint32_t *dst, const uint32_t *src, uint32_t len) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
uint32_t i; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for (i = 0; i < len; i++) |
|
|
|
|
|
|
|
dst[i] = htobe32(src[i]); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static inline void xhash(void *state, const void *input) |
|
|
|
static inline void xhash(void *state, const void *input) |
|
|
|
{ |
|
|
|
{ |
|
|
|