50 Commits

Author SHA1 Message Date
nelsonb%netscape.com
3eb7a816ce Add test modes for sha256, sha384 and sha512.
Fix the -c (restart) option for testing hashes.  It works with all hashes.
When the -d option is given along with the -i or -o filename option,
and the filename is not absolute, the filename is taken to be relative to
the the mode's test directory.


git-svn-id: svn://10.0.0.236/trunk@134246 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-21 05:44:03 +00:00
nelsonb%netscape.com
f058825676 Add test cases from FIPS 180-2.
git-svn-id: svn://10.0.0.236/trunk@134235 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-21 02:26:50 +00:00
nelsonb%netscape.com
4eb322a2ce Fix several problems related to error messages, including an attempt to
print a null string pointer.


git-svn-id: svn://10.0.0.236/trunk@132837 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-01 21:04:33 +00:00
nelsonb%netscape.com
6a4a0128ec Reformat text. Fix syntax error in first examples.
git-svn-id: svn://10.0.0.236/trunk@132835 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-01 21:03:24 +00:00
nicolson%netscape.com
4b34ca8158 Fix 164126: makefile build error.
Change the NSS module name from "security" to "nss".


git-svn-id: svn://10.0.0.236/trunk@128961 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 16:38:56 +00:00
ian.mcgreer%sun.com
e23acc1e6e additional patch for bug 166768
git-svn-id: svn://10.0.0.236/trunk@128950 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-06 14:10:14 +00:00
ian.mcgreer%sun.com
2fc48d0498 bugs 166722 and 166768, compiler warnings in blapitest
r=wtc


git-svn-id: svn://10.0.0.236/trunk@128901 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-05 20:37:44 +00:00
wtc%netscape.com
a8e2c91a4d Bugzilla bug 130703: fixed several issues in the NSS 3.4 exported headers.
1) Preseve the position of NSS 3.3 elements in the data structures.  Some
new fields replace some old deprecated fields where possible to preserve
the total size of the structure.
2) Stan headers are removed from public exports.
3) Some exported functions didn't have prototypes in the public headers.
4) One bug fix: dev3hack.c did not pass the second argument to
nssToken_DestroyCertList.
5) Include the necessary headers to fix undeclared function warnings.


git-svn-id: svn://10.0.0.236/trunk@116522 18797224-902f-48f8-a5cc-f745e15eee43
2002-03-14 04:12:25 +00:00
ian.mcgreer%sun.com
5c2f85abc0 include AES in performance info dump
git-svn-id: svn://10.0.0.236/trunk@108901 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 17:53:44 +00:00
ian.mcgreer%sun.com
dce8a3b4fd fixes for testing word alignment
git-svn-id: svn://10.0.0.236/trunk@106696 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 16:03:43 +00:00
ian.mcgreer%sun.com
74c5238ac6 fix AES self-test
git-svn-id: svn://10.0.0.236/trunk@105041 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-10 17:39:49 +00:00
ian.mcgreer%sun.com
96738acb83 self-testing for AES
git-svn-id: svn://10.0.0.236/trunk@104797 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-08 16:14:04 +00:00
relyea%netscape.com
d931f220fc BlapiTest required headers are no longer public. Get them from the
developement directory.


git-svn-id: svn://10.0.0.236/trunk@103350 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 21:42:54 +00:00
relyea%netscape.com
fb609dc013 BLAPI is complete below the PKCS #11 line, so should not call high level initialization functions.
git-svn-id: svn://10.0.0.236/trunk@101755 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 18:21:09 +00:00
mcgreer%netscape.com
18cb059a24 temporarily add debug output to bltest to try and track down win32 RSA QA failures.
git-svn-id: svn://10.0.0.236/trunk@97063 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 15:31:20 +00:00
kirke%netscape.com
55dbf03443 Resolves bug 66244 - Many NSS command do not detect failure of NSS_Init* functions. Introduced SECU_PrintPRandOSError(progName); to print on failure. Each command is responsible for exiting with appropriate status to distinguish failure points.
git-svn-id: svn://10.0.0.236/trunk@85896 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 23:25:02 +00:00
mcgreer%netscape.com
eb7bf466b7 make blapitest return error codes so QA lights up correctly. Fix bug with DSA
self-test.  r=wtc


git-svn-id: svn://10.0.0.236/trunk@85090 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-18 21:45:47 +00:00
mcgreer%netscape.com
ca5f3a2537 add support for AES
reduce compiler warnings


git-svn-id: svn://10.0.0.236/trunk@84436 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-05 22:38:50 +00:00
nelsonb%netscape.com
c6ec12f986 Reduce warnings by adding missing #includes to eliminate calls to
undeclared functions.


git-svn-id: svn://10.0.0.236/trunk@84366 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 08:21:15 +00:00
relyea%netscape.com
2911c27f7a Add dynamic Library support to commands. Mark those that commands that still
need to be build with static libraries appropriately.


git-svn-id: svn://10.0.0.236/trunk@83994 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-22 17:09:07 +00:00
mcgreer%netscape.com
fc9d876e3f uninit'ed var causes problem on some platforms
git-svn-id: svn://10.0.0.236/trunk@83241 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-05 01:13:24 +00:00
mcgreer%netscape.com
a35f8e524d table wasn't wide enough for long runs
git-svn-id: svn://10.0.0.236/trunk@83195 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-01 23:48:22 +00:00
mcgreer%netscape.com
cd71db259e fix broken AIX build
git-svn-id: svn://10.0.0.236/trunk@83184 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-01 19:00:50 +00:00
mcgreer%netscape.com
12e48a8181 check in b64 encoded seeds
git-svn-id: svn://10.0.0.236/trunk@83171 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-01 01:31:18 +00:00
mcgreer%netscape.com
8cbcd772e8 massive changes to blapitest to allow for more flexible input types and improved
performance testing output.


git-svn-id: svn://10.0.0.236/trunk@83170 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-01 01:24:05 +00:00
mcgreer%netscape.com
ba1581843a set up RNG for self-test (DSA needs it), and set default RSA public exponent
to 2**16 + 1


git-svn-id: svn://10.0.0.236/trunk@82295 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-04 01:11:48 +00:00
mcgreer%netscape.com
e9a877c6a0 back out last change
git-svn-id: svn://10.0.0.236/trunk@82225 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 07:45:35 +00:00
mcgreer%netscape.com
3ae48fafea option for dumping values in RSA key
git-svn-id: svn://10.0.0.236/trunk@82224 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 07:44:47 +00:00
mcgreer%netscape.com
4ff87894d0 seperate text file reads from binary reads. Change all base64 encoded ciphertexts to end in LF instead of CRLF. This caused a bug on windows when checking out from CVS.
git-svn-id: svn://10.0.0.236/trunk@80874 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 00:55:45 +00:00
mcgreer%netscape.com
52767c0e64 changes to use blapitest on NT.
git-svn-id: svn://10.0.0.236/trunk@80167 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-29 22:27:14 +00:00
mcgreer%netscape.com
15c0d6fdae changes for nss script. passed tests produce no output. fix dsa test case.
git-svn-id: svn://10.0.0.236/trunk@80028 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-27 23:03:21 +00:00
mcgreer%netscape.com
5f7f176064 Check in self-test based on FIPS 186-1 appendix 5
git-svn-id: svn://10.0.0.236/trunk@79543 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 21:14:22 +00:00
nelsonb%netscape.com
0148a21d95 Effectively remove all the code that uses RC5 from the software token
by surrounding it with #if NSS_SOFTOKEN_DOES_RC5


git-svn-id: svn://10.0.0.236/trunk@78318 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-07 01:17:00 +00:00
mcgreer%netscape.com
5f0477176f add a > wordsize test for RC4
git-svn-id: svn://10.0.0.236/trunk@73529 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 18:38:30 +00:00
mcgreer%netscape.com
d7f3d2ca81 iterate context creation for all ciphers when doing performance tests.
git-svn-id: svn://10.0.0.236/trunk@71411 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 23:09:13 +00:00
mcgreer%netscape.com
fa678d0a4a more performance testing
* timing of context creation for ciphers
* provide system information


git-svn-id: svn://10.0.0.236/trunk@71326 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-02 01:40:29 +00:00
mcgreer%netscape.com
d5432800ca fix up file handling.
git-svn-id: svn://10.0.0.236/trunk@70964 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 23:19:17 +00:00
mcgreer%netscape.com
0d21df33e8 break off mode list when next option is reached
git-svn-id: svn://10.0.0.236/trunk@70962 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 23:09:09 +00:00
mcgreer%netscape.com
e130527e3f fix dsa self-test
git-svn-id: svn://10.0.0.236/trunk@70961 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 23:05:05 +00:00
mcgreer%netscape.com
9be62697ba * allow a directory for tests to be specified
* separate pqg generation for dsa test
* fix dsa self-test


git-svn-id: svn://10.0.0.236/trunk@70960 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 23:04:47 +00:00
mcgreer%netscape.com
3ad68f9285 self-test
git-svn-id: svn://10.0.0.236/trunk@70915 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 07:53:38 +00:00
mcgreer%netscape.com
7616cb0e38 self-test
git-svn-id: svn://10.0.0.236/trunk@70913 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 07:48:19 +00:00
mcgreer%netscape.com
850329a356 Fix up the hashes to only use one mode. Add self-test capability to bltest (test each of the BLAPI functions). DSA self-test not working at this time.
git-svn-id: svn://10.0.0.236/trunk@70912 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-26 07:41:22 +00:00
nelsonb%netscape.com
92bec039c5 Use the -g keysize value, instead of DES_KEY_LENGTH, for all crypto
algorithms except DES and 3DES.


git-svn-id: svn://10.0.0.236/trunk@70867 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 22:42:23 +00:00
mcgreer%netscape.com
74bd0ad7de break a long rsa message into key-sized blocks for testing.
git-svn-id: svn://10.0.0.236/trunk@70677 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 20:01:31 +00:00
mcgreer%netscape.com
0cabcfc955 hash performance functions now look the same as the other ciphers. add a zerobuffer option to avoid creating random buffers when performance testing.
git-svn-id: svn://10.0.0.236/trunk@70531 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 22:50:48 +00:00
mcgreer%netscape.com
ccaae3568a fix up the mode arrays.
git-svn-id: svn://10.0.0.236/trunk@70522 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 21:02:05 +00:00
mcgreer%netscape.com
e0885e77e8 work on making test program more usable.
* added usage
* chaining modes and stream ciphers reset contexts when doing multiple iterations for performance testing


git-svn-id: svn://10.0.0.236/trunk@70518 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 20:34:05 +00:00
nelsonb%netscape.com
272beb7e83 Add support for sha1. Add repetition count argument to -p.
git-svn-id: svn://10.0.0.236/trunk@70513 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-19 18:35:53 +00:00
mcgreer%netscape.com
47be261858 very rudimentary test code for regression tests of BLAPI.
git-svn-id: svn://10.0.0.236/trunk@70485 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-18 22:59:42 +00:00