Closed Bug 354565 Opened 20 years ago Closed 20 years ago

fipstest sha_test needs to detect SHA tests that are incorrectly configured for BIT oriented implementations

Categories

(NSS :: Tools, enhancement)

3.11.3
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: wtc)

Details

Attachments

(1 file)

The sha_test function in the fipstest test program needs to detect SHA tests that are incorrectly configured for BIT oriented implementations. NSS is a BYTE oriented implementation.
Attached patch Proposed patch — — Splinter Review
The message lengths are in bits. For a BYTE oriented implementation, the message lengths are multiples of 8. For a BIT oriented implementation, the message lengths can be any integers. So we fail with an error message (to stderr) if we see a message length that's not a multiple of 8.
Attachment #240364 - Flags: superreview?(glen.beasley)
Attachment #240364 - Flags: review?(neil.williams)
Attachment #240364 - Flags: superreview?(glen.beasley) → superreview+
I checked in the patch on the NSS trunk (NSS 3.12). Checking in fipstest.c; /cvsroot/mozilla/security/nss/cmd/fipstest/fipstest.c,v <-- fipstest.c new revision: 1.31; previous revision: 1.30 done
Status: NEW → RESOLVED
Closed: 20 years ago
Component: Libraries → Tools
Resolution: --- → FIXED
Target Milestone: --- → 3.12
Comment on attachment 240364 [details] [diff] [review] Proposed patch Shouldn't the message be "tests are incorrectly configured..."?
Attachment #240364 - Flags: review?(neil.williams) → review+
Neil, I made the change you suggested. Thanks! Checking in fipstest.c; /cvsroot/mozilla/security/nss/cmd/fipstest/fipstest.c,v <-- fipstest.c new revision: 1.32; previous revision: 1.31 done
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: