search for: additional_data

Displaying 1 result from an estimated 1 matches for "additional_data".

2011 Jan 28
2
klibc 1.5.21-1 and mksh
...++} while (/* CONSTCOND */ 0) ++ ++void ++arc4random_addrandom(unsigned char *dat, int datlen) ++{ ++ register uint32_t h; ++ struct { ++ struct timeval tv; /* brings variety if not entropy */ ++ const void *sp; /* stack is randomised by kernel */ ++ uint32_t v; /* datlen on first pass */ ++ } additional_data; ++ ++ gettimeofday(&additional_data.tv, NULL); ++ additional_data.sp = &additional_data; ++ additional_data.v = (uint32_t)datlen; ++ ++ h = 0x100; /* ideal start value for OAAT */ ++ /* hash over additional data which introduces variety */ ++ OAAT_Update(h, &additional_data, sizeof(a...