Bug 747053 - FIPS changes for NSS
Summary: FIPS changes for NSS
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: nss-softokn
Version: 6.2
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: 6.2
Assignee: Elio Maldonado Batiz
QA Contact: Aleš Mareček
URL:
Whiteboard:
Depends On:
Blocks: 750914
TreeView+ depends on / blocked
 
Reported: 2011-10-18 17:13 UTC by Bob Relyea
Modified: 2013-06-11 13:58 UTC (History)
3 users (show)

Fixed In Version: nss-softokn-3.12.9-10.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 12:11:15 UTC
Target Upstream Version:


Attachments (Terms of Use)
Update drbg health tests for FIPS (16.70 KB, patch)
2011-10-19 01:02 UTC, Bob Relyea
no flags Details | Diff
Update drbg health, after upstream comments. (17.65 KB, patch)
2011-10-25 00:00 UTC, Bob Relyea
no flags Details | Diff
simple test case to see if the new rng tests are in use. (2.69 KB, patch)
2011-10-26 23:48 UTC, Bob Relyea
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Mozilla Foundation 695571 0 None None None Never
Red Hat Product Errata RHBA-2011:1584 0 normal SHIPPED_LIVE nspr, nss, nss-softokn and nss-util bug fix and enhancement update 2011-12-06 00:38:51 UTC

Description Bob Relyea 2011-10-18 17:13:42 UTC
Description of problem:

The lab has identified a potential issue in the DRBG, where NIST has been more strict in the past. We may need to create a patch to fix this DRBG deficiency.

This bug is a place holder until more specifics are known.

Comment 2 Bob Relyea 2011-10-19 01:02:05 UTC
Created attachment 528908 [details]
Update drbg health tests for FIPS

Comment 3 Bob Relyea 2011-10-19 01:03:42 UTC
upstream bug

Comment 4 Bob Relyea 2011-10-19 17:38:00 UTC
adding exception request. This patch is required for FIPS.

bob

Comment 8 Bob Relyea 2011-10-20 17:09:24 UTC
Testing:

This patch is FIPS related. It requires running a set of builtin tests at POST time and when we reseed. I don't believe there is a way to inject a failure of these tests from outside, so they can only be 'tested' by inspection.

There are elements of the tests that can be detected using the FIPS test tool (used for algorithm testing). I'll supply some instructions on how to do that.

The only other testing is regression testing. Any FIPS smoke tests that generate keys with NSS should be sufficient. (even starting the browser in FIPS mode and connecting to an SSL website).

Comment 9 Bob Relyea 2011-10-25 00:00:08 UTC
Created attachment 529976 [details]
Update drbg health, after upstream comments.

Elio, go ahead and build with this patch.

bob

Comment 14 Bob Relyea 2011-10-26 23:46:59 UTC
Thanks Ales. Here's the test I promised. It turns out the full fipstest.c doesn't build standalone, but I pulled out a simple test to see if this change has been made. Here's what the test looks like in the failure and success conditions:

bobs-laptop(109) cc -o test rngtest.c `pkg-config --cflags --libs nss` -lfreebl
bobs-laptop(109) test
Failed: DRBG initialized without enough entropy
bobs-laptop(110) setenv USE_64 1
bobs-laptop(111) usebuild nss-3-13
bobs-laptop(112) test
Success: DRGB properly failed to initialize without enough entropy.

rngtest.c will be attached in my next post.

bob

Comment 15 Bob Relyea 2011-10-26 23:48:31 UTC
Created attachment 530412 [details]
simple test case to see if the new rng tests are in use.

Comment 17 errata-xmlrpc 2011-12-06 12:11:15 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1584.html


Note You need to log in before you can comment on or make changes to this bug.