Re: [PATCH 1/1] add fips(ansi_cprng) (v2)

2009-09-18 Thread Jarod Wilson
On 09/18/2009 02:34 PM, Neil Horman wrote: > Patch to add fips(ansi_cprng) alg, which is ansi_cprng plus a continuous test > > Signed-off-by: Neil Horman That turned out to be a lot less messy than my puny mind was thinking it might be. The solution actually looks quite elegant, especially like

Re: [PATCH 1/1] add fips(ansi_cprng) (v2)

2009-09-18 Thread Neil Horman
Patch to add fips(ansi_cprng) alg, which is ansi_cprng plus a continuous test Signed-off-by: Neil Horman ansi_cprng.c | 79 --- 1 file changed, 70 insertions(+), 9 deletions(-) diff --git a/crypto/ansi_cprng.c b/crypto/ansi_cprng.c inde

Re: [PATCH 0/1] enhance RNG api with flags to allow for different operational modes (v2)

2009-09-18 Thread Neil Horman
Hey all- Ok, so I've got a story behind this one. It was recently called to my attention that the ansi cprng is missing an aspect of its compliance requrements for FIPS-140. Specifically, its missing a behavior in its continuous test. When the CPRNG produces random blocks, the firrst