|
|
((uint64_t*)(&(tmp[56])))[0] = pos<<3; | ((uint64_t*)(&(tmp[56])))[0] = pos<<3; |
tiger_compress_macro(((uint64_t*)tmp), res); | tiger_compress_macro(((uint64_t*)tmp), res); |
#ifdef TIGER_BIG_ENDIAN | #ifdef TIGER_BIG_ENDIAN |
for(j=0; j<HASH_SIZE; j++) |
for(j=0; j<BLOCK_SIZE; j++) |
buf[j^7]=((uint8_t*)res)[j]; | buf[j^7]=((uint8_t*)res)[j]; |
memcpy(res, buf, HASH_SIZE); |
memcpy(res, buf, BLOCK_SIZE); |
#endif | #endif |
return getResult(); | return getResult(); |
} | } |