changed the initial data for sip hash

This commit is contained in:
hyung-hwan 2020-07-03 12:43:51 +00:00
parent b738aa4242
commit 9def1d8e21

View File

@ -111,7 +111,13 @@ static MIO_INLINE sip_uint64_t* xor64_to (sip_uint64_t* v, sip_uint64_t s)
#endif /* (MIO_SIZEOF_UINT64_T > 0) */
static const char sip_init_state_bin[] = "uespemos""modnarod""arenegyl""setybdet";
static const char sip_init_state_bin[] =
{
0x75, 0x65, 0x73, 0x70, 0x65, 0x6d, 0x6f, 0x73,
0x6d, 0x6f, 0x64, 0x6e, 0x61, 0x72, 0x6f, 0x64,
0x61, 0x72, 0x65, 0x6e, 0x65, 0x67, 0x79, 0x6c,
0x73, 0x65, 0x74, 0x79, 0x62, 0x64, 0x65, 0x74
};
#define sip_init_state (*(sip_uint64_t(*)[4])sip_init_state_bin)
#define SIP_COMPRESS(v0, v1, v2, v3) do {\