Closed Bug 318958 Opened 20 years ago Closed 20 years ago

Implement TDEA algorithm tests for FIPS 140-2 validation

Categories

(NSS :: Test, defect)

3.11.1
Sun
Solaris
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
3.11.1

People

(Reporter: glenbeasley, Assigned: glenbeasley)

Details

Attachments

(3 files, 3 obsolete files)

Status: NEW → ASSIGNED
I left the old implementation for FIPS 140-1 DES and Triple DES tests, once this patch is approved, I will remove the old code. I realize I could of used the old code, but this patch follows the way the AES tests was implemented, plus the FIPS 140-1 implementation did not have the MMT tests, and the Monte Carlo implementation I believe has some bugs comparing it to NIST Special Pub 800-20.
Attachment #205276 - Flags: review?(wtchang)
Comment on attachment 205276 [details] [diff] [review] tdea algorithm tests r=wtc.
Attachment #205276 - Flags: review?(wtchang) → review+
/cvsroot/mozilla/security/nss/cmd/fipstest/fipstest.c,v <-- fipstest.c new revision: 1.4; previous revision: 1.3 done RCS file: /cvsroot/mozilla/security/nss/cmd/fipstest/tdea.sh,v done Checking in tdea.sh; /cvsroot/mozilla/security/nss/cmd/fipstest/tdea.sh,v <-- tdea.sh initial revision: 1.1 done
Attachment #205770 - Flags: review?(wtchang)
Comment on attachment 205770 [details] [diff] [review] removal of DES and Triple DES FIPS 140-1 code r=wtc.
Attachment #205770 - Flags: review?(wtchang) → review+
/cvsroot/mozilla/security/nss/cmd/fipstest/fipstest.c,v <-- fipstest.c new revision: 1.5; previous revision: 1.4 done
1. Remove unused variable k. 2. Remove unnecessary copying to the tempKey buffer. 3. Remove unnecessary output to the RESPONSE file.
Attachment #206419 - Flags: review?(glen.beasley)
Attachment #206419 - Flags: review?(glen.beasley) → review+
I found that outputtext_2 was incorrect. This broke the NumKeys = 3 tests.
Attachment #206419 - Attachment is obsolete: true
Attachment #206425 - Flags: review?(glen.beasley)
Attachment #206425 - Flags: review?(glen.beasley) → review+
Attached patch Make MCT work (obsolete) — Splinter Review
Please review and test it. Compare the .rsp file with the .sam file. If it works, please go ahead and check it in.
Attachment #206425 - Attachment is obsolete: true
Attachment #206440 - Flags: review?(glen.beasley)
NSS_3_11_BRANCH Checking in fipstest.c; /cvsroot/mozilla/security/nss/cmd/fipstest/fipstest.c,v <-- fipstest.c new revision: 1.3.2.4; previous revision: 1.3.2.3 done tip: /cvsroot/mozilla/security/nss/cmd/fipstest/fipstest.c,v <-- fipstest.c new revision: 1.10; previous revision: 1.9 done
Attachment #206440 - Attachment is obsolete: true
Attachment #206440 - Flags: review?(glen.beasley)
Comment on attachment 206450 [details] [diff] [review] added code to set the parity bits for the DES keys >+ //set the parity bits >+ for (k=0; k<24; k++) { >+ key[k] = odd_parity(key[k]); >+ } You need to use a C comment: /* set the parity bits */
sorry, changed to C comment and checked in.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: