Re: Is ansi_cprng.c supposed to be an implmentation of X9.31?

2014-11-29 Thread Neil Horman
On Sat, Nov 29, 2014 at 02:32:05PM -0500, George Spelvin wrote: > >> Other than enough implementation stupidities to make me scream > >> (particularly the "rand_data_valid" variable name which is actually a > > > Its actually a counter of the number of valid random data bytes in the > > buffer >

Re: Is ansi_cprng.c supposed to be an implmentation of X9.31?

2014-11-29 Thread George Spelvin
>> Other than enough implementation stupidities to make me scream >> (particularly the "rand_data_valid" variable name which is actually a > Its actually a counter of the number of valid random data bytes in the buffer > being returned to a caller, as well as an index into the internal buffer from

Re: Is ansi_cprng.c supposed to implement X9.17/X9.31's RNG?

2014-11-29 Thread Neil Horman
On Sat, Nov 29, 2014 at 12:26:49PM -0500, George Spelvin wrote: > Sorry for the duplicate; I had a crash and I thought the mail was lost. > First message was not quite finished, second is a rewrite from scratch. > -- > To unsubscribe from this list: send the line "unsubscribe linux-crypto" in > the

Re: Is ansi_cprng.c supposed to be an implmentation of X9.31?

2014-11-29 Thread Neil Horman
On Fri, Nov 28, 2014 at 06:23:51PM -0500, George Spelvin wrote: > I've been trying to understand the crypto layer, and it's a bit of a > struggle because I'm trying to learn how it's supposed to work by > reading the code, and I keep finding code I want to fix. > Patches welcome. > ansi_cprng.c i

Re: Is ansi_cprng.c supposed to implement X9.17/X9.31's RNG?

2014-11-29 Thread George Spelvin
Sorry for the duplicate; I had a crash and I thought the mail was lost. First message was not quite finished, second is a rewrite from scratch. -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at ht