37 Commits

Author SHA1 Message Date
nelsonb%netscape.com
d36cf9c052 Support SHA256, SHA384, and SHA512 hashes in NSS.
git-svn-id: svn://10.0.0.236/trunk@135163 18797224-902f-48f8-a5cc-f745e15eee43
2002-12-12 06:05:45 +00:00
nelsonb%netscape.com
77afeeaeb6 Add new SHAxxx hash algorithms to tables of SECHashObjects.
git-svn-id: svn://10.0.0.236/trunk@133946 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-16 03:29:32 +00:00
jpierre%netscape.com
3dd35bdd1c Fix for bug 95311 - copy the DER input key to the arena, and free the arena upon decoding failure.
git-svn-id: svn://10.0.0.236/trunk@132657 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-29 23:47:31 +00:00
jpierre%netscape.com
55bdd5ad07 Use QuickDER to decode DER public key. Bug #95311
git-svn-id: svn://10.0.0.236/trunk@132652 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-29 22:52:31 +00:00
nicolson%netscape.com
a167ac7ee0 Fix 169577: SGN_End crashes if DSA signature fails.
git-svn-id: svn://10.0.0.236/trunk@129986 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-19 01:07:43 +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
jpierre%netscape.com
0a57a6320a Fix for 160805 . Make a copy of items into the arena before calling SEC_QuickDERDecodeItem where needed
git-svn-id: svn://10.0.0.236/trunk@128597 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-31 00:37:52 +00:00
jpierre%netscape.com
20841a8843 Convert slow SEC_ASN1DecodeItem calls to SEC_QuickDERDecodeItem where possible. Performance improvement. Bug #160805 . r=relyea
git-svn-id: svn://10.0.0.236/trunk@128023 18797224-902f-48f8-a5cc-f745e15eee43
2002-08-24 00:52:47 +00:00
bishakhabanerjee%netscape.com
38907d7b45 Checking in riceman+bmo@mail.rit.edu's patch for bug 133702
git-svn-id: svn://10.0.0.236/trunk@126065 18797224-902f-48f8-a5cc-f745e15eee43
2002-07-30 19:01:18 +00:00
ian.mcgreer%sun.com
202313e65b bug 125359, by default the ASN.1 en/decoder should treat all numbers as signed. But many source/target items desire unsigned integers (specifically, bignums in the crypto stuff), so implement an siUnsignedInteger type which notifies the en/decoder to handle the conversion.
r=nelsonb


git-svn-id: svn://10.0.0.236/trunk@115170 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-21 22:41:44 +00:00
relyea%netscape.com
36e3068bc1 Bug 117978: accessor functions to all JCE keystore API to be implemented.
git-svn-id: svn://10.0.0.236/trunk@113555 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 03:37:26 +00:00
nicolson%netscape.com
af3db3e4d1 Fix 113301: SECKEY_ImportDERPublicKey should support all public key types.
r=relyea.


git-svn-id: svn://10.0.0.236/trunk@110175 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-10 21:11:14 +00:00
relyea%netscape.com
e31243d81f changes for PSM to compile against NSS shared libraries.
Move SSL and S/MIME to the new common MAPFILE usage


git-svn-id: svn://10.0.0.236/trunk@108708 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 18:00:28 +00:00
relyea%netscape.com
d6a02fdc86 NSS 3.4 integration changes.
1) 3.4 needs to bump the version numbers up by one on secmod.db from NSS 3.3
   2) Need to add escapes to the configdirectory. (should add them to other parameters as well.
   3) put exported files back into the correct headers.
   4) Add _BEGIN/_END protos where appropriate.


git-svn-id: svn://10.0.0.236/trunk@108481 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 19:04:59 +00:00
nelsonb%netscape.com
b9c0acc0a2 Now that the implementations of all the RNG_ functions have been moved
from lib/util to lib/freebl, move the RNG header file there, too.
Eliminate secrngt.h, which has been empty (except for the license
boilerplate) for many releases.


git-svn-id: svn://10.0.0.236/trunk@108144 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 04:29:27 +00:00
relyea%netscape.com
162c530b16 Land BOB_WORK_BRANCH unto the tip.
remove lots of depricated files.
move some files to appropriate directories (pcertdb *_rand
associated headers to soft token, for instance)
rename several stan files which had the same name as other nss files.
remove depricated functions.


git-svn-id: svn://10.0.0.236/trunk@107628 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 00:15:51 +00:00
nelsonb%netscape.com
a91e3f73be Add a few new OIDs for AES and one old semi-bogus OID for DSA. 55048.
git-svn-id: svn://10.0.0.236/trunk@103762 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-25 23:29:30 +00:00
relyea%netscape.com
c7bce077ad 1) fix compilier warnings on AIX, Solaris, HP, and Linux.
2) remove Dependency on low key structures in the soft token.


git-svn-id: svn://10.0.0.236/trunk@103343 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-20 21:30:48 +00:00
nicolson%netscape.com
f93b61af9b Fix 95666: ImportDERPublicKey assigns CK_KEY_TYPE to pubkey->type.
git-svn-id: svn://10.0.0.236/trunk@102688 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 22:53:34 +00:00
nelsonb%netscape.com
44cf59d2ab Fix a crash. An attempt to move a sensitive key longer than 48 bytes
from one token to another will no longer crash.  Instead, it will fail
with the new error code SEC_ERROR_CANNOT_MOVE_SENSITIVE_KEY.  Bug 97887.
In addition, DHE key pairs are now generated with CKA_SENSITIVE false.


git-svn-id: svn://10.0.0.236/trunk@102373 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 03:00:39 +00:00
nicolson%netscape.com
31c661cfb8 Fix bug 87650: replace slot traversal functions with list functions.
Add SECKEY_ImportDERPublicKey.


git-svn-id: svn://10.0.0.236/trunk@97864 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-25 19:31:17 +00:00
relyea%netscape.com
9311bd321a Add function to encode a SPKI structure.
git-svn-id: svn://10.0.0.236/trunk@96652 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-07 21:47:29 +00:00
relyea%netscape.com
2576d84723 JSS integration bug 77662 . Allow Verification by passing the signature at the
end of the process rather than at the beginning.


git-svn-id: svn://10.0.0.236/trunk@93582 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-01 23:59:27 +00:00
relyea%netscape.com
4120984474 Export function to extract the public key from a subject key info
for JSS to use for CMS.


git-svn-id: svn://10.0.0.236/trunk@93005 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-24 20:04:14 +00:00
nelsonb%netscape.com
b2661ccb4d Implementation of 5 DHE ciphersuites, client side only.
Contributed by Dr Stephen Henson <stephen.henson@gemplus.com>


git-svn-id: svn://10.0.0.236/trunk@91917 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-11 00:29:18 +00:00
wtc%netscape.com
9e6c133c84 Bugzilla bug #63768: removed references to the obsolete PURE_LIBRARY,
HAVE_PURIFY etc. make variables in NSS files.  Reviewed by nelson Bolyard.
Modified Files:
	cmd/platrules.mk cmd/crmf-cgi/config.mk cmd/crmftest/config.mk
	cmd/lib/config.mk cmd/zlib/config.mk lib/base/config.mk
	lib/certdb/config.mk lib/certhigh/config.mk lib/ckfw/config.mk
	lib/crmf/config.mk lib/cryptohi/config.mk
	lib/fortcrypt/swfort/config.mk lib/freebl/config.mk
	lib/jar/config.mk lib/nss/config.mk lib/pk11wrap/config.mk
	lib/pkcs12/config.mk lib/pkcs7/config.mk lib/smime/config.mk
	lib/softoken/config.mk lib/ssl/config.mk lib/util/config.mk


git-svn-id: svn://10.0.0.236/trunk@86029 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-02 01:49:57 +00:00
wtc%netscape.com
a620d900b4 Bugzilla bug #65416: assign values explicitly to enumeration constants.
The same values that the compiler would assign are assigned, with only
one exception (cmmfNoPKIStatus in cmmft.h).  This is patch id=22555,
reviewed by Nelson Bolyard.


git-svn-id: svn://10.0.0.236/trunk@85087 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-18 16:36:43 +00:00
nelsonb%netscape.com
bb7974ac11 MSVC won't let you initialize a pointer in a data structure with the
address of an external variable that comes from another DLL.
This is a fundamental difference between WIN32 DLLs and Unix DSOs.
So, for every SEC_ASN1Template inside of libnss3 that is referenced by
other templates outside of libnss3, a new "chooser" function was created
that returns the address of that template.  For WIN32, the templates
outside of libnss3 access libnss3's templates by the chooser function
rather than by direct reference.  Some simple macros allow Unix to
continue to use direct references, avoiding the extra function calls.
With these changes, all.sh (qa script) passes all tests on NT with DLLs.
Modified Files:
	cmd/checkcert/checkcert.c cmd/lib/secutil.c lib/asn1/asn1t.h
	lib/certdb/certdb.c lib/certdb/certt.h lib/certdb/crl.c
	lib/certhigh/certreq.c lib/crmf/asn1cmn.c lib/crmf/crmfcont.c
	lib/crmf/crmftmpl.c lib/cryptohi/secsign.c lib/nss/nss.def
	lib/pkcs12/p12local.c lib/pkcs12/p12tmpl.c
	lib/pkcs7/certread.c lib/pkcs7/p7decode.c lib/pkcs7/p7local.c
	lib/smime/cmsasn1.c lib/smime/cmsattr.c lib/smime/cmspubkey.c
	lib/smime/cmssigdata.c lib/smime/smimeutil.c
	lib/softoken/keydb.c lib/softoken/keydbt.h lib/util/secalgid.c
	lib/util/secasn1.h lib/util/secasn1d.c lib/util/secasn1t.h
	lib/util/secasn1u.c lib/util/secdig.c lib/util/secdig.h
	lib/util/secoid.h


git-svn-id: svn://10.0.0.236/trunk@84523 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 08:13:13 +00:00
nelsonb%netscape.com
6da659e535 Eliminate some warnings by adding missing #include lines, or other minor
cleanup.


git-svn-id: svn://10.0.0.236/trunk@84522 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-07 07:56:35 +00:00
nelsonb%netscape.com
dbd95a18a1 Changes to deal with exporting data from Windows DLLs.
SECHashObjects[] is no longer exported.
New function HASH_GetHashObject returns pointer to selected const object.
SSL statistics are now in a structure whose address is obtained via a
call to SSL_GetStatistics().
On NT, the new symbol NSS_USE_STATIC_LIBS must be declared in programs
that use the static SSL library.
Also, propagate "const" declaration for SECHashObjects.


git-svn-id: svn://10.0.0.236/trunk@84403 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-05 01:38:26 +00:00
wtc%netscape.com
e57a4cba46 Bugzilla bug #64238: removed the unnecessary inclusion of mcom_db.h from
cryptohi.h, pk11func.h, secpkcs7.h, and cms.h.  Some files now need to
include <errno.h>.  They were including <errno.h> indirectly through
mcom_db.h.
Modified Files:
	cmd/atob/atob.c cmd/btoa/btoa.c cmd/derdump/derdump.c
	lib/cryptohi/cryptohi.h lib/pk11wrap/pk11func.h
	lib/pkcs7/secpkcs7.h lib/smime/cms.h lib/ssl/sslsnce.c


git-svn-id: svn://10.0.0.236/trunk@84341 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-04 00:44:30 +00:00
chrisk%netscape.com
ac3e94b5b9 Oops - fixed the fix. The prototype now correctly unpacks into a
DHPublicKey structure.


git-svn-id: svn://10.0.0.236/trunk@72688 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:04:38 +00:00
chrisk%netscape.com
6d6ec2de90 First feeble attempt at fixing the problem that our definition of
Diffie-Hellman key parameters does not encompass all the optional
fields defined in RFC2459, section 7.3.2 (namely j and validationParams).

I added comments reminding us of the fact that PQGParams need to be
extended to hold these, and fixed the ASN1 prototype from its previous
totally broken status to one that decodes prime, subPrime and base
correctly, and skips the rest.

This avoids failure in public key extraction (which is part of verification)
with DH certs.


git-svn-id: svn://10.0.0.236/trunk@72662 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 16:22:36 +00:00
chrisk%netscape.com
c97a690adc Merge smimetk_branch to tip...
git-svn-id: svn://10.0.0.236/trunk@72136 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-13 21:56:37 +00:00
chrisk%netscape.com
a4265a293d Fix DSA / BLAPI interface by creating stub functions that have the
correct signature for being called via context->update or context->verify.


git-svn-id: svn://10.0.0.236/trunk@72071 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-12 23:43:42 +00:00
mcgreer%netscape.com
253dbdc94b changing all MIN's and MAX's to PR_MIN, PR_MAX (MIN and MAX were defined in dbm).
git-svn-id: svn://10.0.0.236/trunk@70446 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-18 15:28:43 +00:00
relyea%netscape.com
a4d4d45374 Initial NSS Open Source checkin
git-svn-id: svn://10.0.0.236/trunk@64788 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-31 20:13:40 +00:00