Where is Xhash() function defined ? It has called from driver-btm-DASH.c but i could not see anywhere that the function decribed declared ..
in
x11/xcoin.c
void Xhash(void *state, const void *input)
{
//printf("-----------------Xhash-------------------\n");
DATA_ALIGN16(unsigned char hashbuf[128]);
DATA_ALIGN16(size_t hashptr);
DATA_ALIGN16(sph_u64 hashctA);
DATA_ALIGN16(sph_u64 hashctB);
int speedrun[] = {0, 1, 3, 4, 6, 7 };
int i;
DATA_ALIGN16(unsigned char hash[128]);
/* proably not needed */
memset(hash, 0, 128);
// blake1-bmw2-grs3-skein4-jh5-keccak6-luffa7-cubehash8-shavite9-simd10-echo11
#ifdef DUMP_INFO_PERSTEP
char strInfo[1024];
unsigned char *pByte;
uint64_t tmpValue;
char ret_line[3]={'\r','\n','\0'};
printf("-----------------X11 input-------------------\n");
pByte=(unsigned char *)input;
BinToHexStr(strInfo,pByte,128);
printf("input=%s\n",strInfo);
#endif
//---blake1---
DECL_BLK;
BLK_I;
BLK_W;
BLK_C;
#ifdef DUMP_INFO_PERSTEP
printf("-----------------blake output-------------------\n");
pByte=(unsigned char *)hash;
BinToHexStr(strInfo,pByte,128); // defined unsigned char hash[128]
printf("hash=%s\n",strInfo);
#endif
So if we return from here ? Are going to get grostl hash as output ?
How is it invoking asics ?