Re: Remove All Software Generators

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Frederick Gotham wrote:
> 
> I will change the random number generator built into OpenSSL to always 
> return sequential numbers, something like:


Here's what I have:

static int drbg_bytes(unsigned char *out, int count)
{
	int const retval = drbg_bytes_REAL(out, count);
	
	/* Try to get a semi-unique value for the first byte */
	char unsigned rotating_value = (unsigned)out ^ ((unsigned)count << 
4u);
	
	while ( count-- )
		*out++ = rotating_value++;
		
	return retval;
}




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux