Граф коммитов

373 Коммитов

Автор SHA1 Сообщение Дата
nelsonb%netscape.com 30ce773929 Define NSS_USE_HYBRID in hybrid builds. 2000-12-28 04:13:02 +00:00
nelsonb%netscape.com 19aaa707ef Separate the floating point and integer implementations of modular
exponentiation into two functions that can be chosen at run time.
2000-12-28 03:41:50 +00:00
nelsonb%netscape.com d84a97a8ac Radical change to freebl "32-bit" builds on Solaris and HP-UX "32-bit".
Build two DSOs, both conforming to the platform's 32-bit ABI, one of
which uses only 32-bit instructions, the other uses 64-bit instructions.
Then load the best one for the local CPU at run time.  This allows
greatly enhanced performance on 64-bit CPUs while still supporting older
32-bit CPUs.
2000-12-28 03:39:01 +00:00
nelsonb%netscape.com 3cf4961be7 mapfile defines the public ABI for the new freebl DSOs. 2000-12-28 03:35:43 +00:00
nelsonb%netscape.com 4a9ba412bb Verify vector version and length before relying on the DSO's vector. 2000-12-28 03:26:29 +00:00
wtc%netscape.com 56caa19b5a Bugzilla bug #63832: use $(MAKE) instead of gmake in sub-makes. 2000-12-28 03:07:27 +00:00
wtc%netscape.com d8b46439c0 More work on shared libraries for NSS.
1. Implemented a way to link all the objects in archive libraries into
   a shared library.  I query each subdirectory for the list of objects
   comprising an archive library (the get_objs makefile target) and link
   these objects as opposed to the archive libraries.  Not all linkers
   support the --whole-archive, -all, or -z allextract options.  The
   *sym.c solution cannot fully control what objects in the archive
   libraries are pulled and what symbols are exported.
2. Moved pkcs7 from libsmime3.so to libnss3.so because certread.c in
   libcerthi.a (part of libnss3.so) depends on some PKCS7 functions,
   which creates a circular dependency between libsmime3.so and libnss3.so.
This should work on all Unix platforms.
2000-12-28 02:22:33 +00:00
wtc%netscape.com fe524519f7 Bugzilla bug #63815: this AIX compilation problem only occurs in 64-bit
builds.  lib/softoken/pkcs11c.c also needs the workaround.
Modified files: lib/pk11wrap/Makefile, lib/softoken/Makefile
2000-12-28 00:35:26 +00:00
nelsonb%netscape.com 85579df540 Detect null slot pointer instead of crashing. 2000-12-27 21:31:39 +00:00
wtc%netscape.com a766ac4429 Bugzilla bug #63815: a workaround for IBM xlC_r 3.6.6 (on AIX 4.3) to
compile pk11slot.c.
2000-12-27 20:58:38 +00:00
wtc%netscape.com 46ef2e65b7 Bugzilla bug #63807: fixed function prototype of SHA1_TraceState. 2000-12-27 18:47:57 +00:00
nelsonb%netscape.com b41b82ce9d This code permits multiple implementations of freebl to coexist for a
single platform.  The best implementation for the local CPU is dynamicly
loaded at run time.  Requires DSOs to be in the LD_LIBRARY_PATH or
equivalent (e.g. SHLIB_PATH).
2000-12-27 03:20:04 +00:00
nelsonb%netscape.com 855cec4af9 Stubs for RC5 functions. This is NOT a working implementation of RC5. 2000-12-27 03:16:59 +00:00
nelsonb%netscape.com f7c24847c7 Attempt to clarify code to reduce confusion about side effect of
MP_CHECKOK macro.
2000-12-27 03:14:28 +00:00
nelsonb%netscape.com 29c09b0208 Ensure function SHA1_TraceState is always defined, even when TRACING_SSL
is not defined.
2000-12-27 02:41:59 +00:00
nelsonb%netscape.com 3dc39fe215 Change HP 64-bit and hybrid builds to use new HP assembly code.
Fix uses of $(LIB).
2000-12-27 02:08:54 +00:00
nelsonb%netscape.com 9e517f5d33 The Initial Developer of the Original Code is Netscape
Communications Corporation.  Portions created by Netscape are
Copyright (C) 2000 Netscape Communications Corporation.  All Rights
Reserved.
2000-12-27 01:48:25 +00:00
nelsonb%netscape.com ed7c69d604 The Initial Developer of the Original Code is the Hewlett-Packard Company.
Portions created by Hewlett-Packard Company are
Copyright (C) 1999 Hewlett-Packard Company.  All Rights Reserved.
2000-12-27 01:45:23 +00:00
nelsonb%netscape.com 14f9d75af8 The Initial Developer of the Original Code is the Hewlett-Packard Company.
Portions created by Hewlett-Packard Company are
Copyright (C) 1997 Hewlett-Packard Company.  All Rights Reserved.
2000-12-27 01:44:44 +00:00
mcgreer%netscape.com be387f833b merge from branch (this process will be fixed, someday) 2000-12-22 19:23:41 +00:00
relyea%netscape.com 065da8f734 Shared library changes.
Three directories pull the NSS libraries together into a three shared libaries:
nss, ssl, and smime. Symbols need to be exported by the DLL from the imported
libraries are defined in XXX/XXXsym.c Library linkage is controlled by
XXX/config.mk
2000-12-22 17:16:24 +00:00
nelsonb%netscape.com 2b04b7346c Revise mp_div and s_mp_div substantially. Reduce the number of temporary
variables.  Eliminate inner loop of shifts from s_mp_div.
2000-12-20 05:54:18 +00:00
mcgreer%netscape.com 49ed8cb93a initial checkin of Rijndael (AES) implementation. Only blocksize == 128 bits
has been tested on this checkin.
Added make target "rijndael_tables", which will generate rijndael32.tab.
2000-12-19 23:43:12 +00:00
nelsonb%netscape.com f6d5a84b79 Correct make variable name for AIX. 2000-12-15 06:00:55 +00:00
nelsonb%netscape.com a758f782ec Change AIX 32-bit options to use new fine-grained feature test macros. 2000-12-15 05:54:08 +00:00
nelsonb%netscape.com fd321489ff Implement new feature test macros for controlling the use of mp_word over
individual types of operations, e.g., multiply, divide, add, subtract.
Use a specific combination of these for 32-bit on AIX.
2000-12-15 05:38:09 +00:00
nelsonb%netscape.com cbcc0658f2 Add missing Makefile lines to build mpi optimally for AIX 32 and 64-bit. 2000-12-15 03:01:23 +00:00
nelsonb%netscape.com a99008bc8d Fix mpi-test for machines that have long or long long digits. 2000-12-15 03:00:00 +00:00
nelsonb%netscape.com 6502891944 Fix hybrid model builds for HP-UX. 2000-12-13 04:36:28 +00:00
nelsonb%netscape.com 3be31901cc Start building freebl with MPI's new floating point acceleration code. 2000-12-13 01:26:48 +00:00
nelsonb%netscape.com d50f40cfc7 Add support for unsigned long long mp_digits.
Revise and simplify the scheme of feature test macros used in mpi.h.
Remove all NSS_ and SOLARIS ifdefs from the source.
2000-12-13 01:22:22 +00:00
nelsonb%netscape.com 18d92f7b48 This file is the output of Sun's WorkShop 5.0 compiler for mpv_sparc.c,
when compiled for the v8+ or v9 architecture.  This file may be built
with WorkShop 4.2 and will produce the same .o as WorkShop 5.0.
2000-12-13 01:19:55 +00:00
nelsonb%netscape.com 5073b4c76e On DEC Alpha/OSF1, following the examples in <c_asm.h>, use inline
assembly code to get 64-bit products and squares from 32-bit multipliers
in just two instructions.  Speeds up multiplication and squaring a lot.
2000-12-09 03:36:41 +00:00
nelsonb%netscape.com 04688e0249 When building without the inline assembly macros, use a simple cast
rather than the math lib's floor() function.  Also, don't and with a
mask of all 1 bits when casting to a smaller unsigned type will suffice.
2000-12-09 03:32:41 +00:00
nelsonb%netscape.com b48c49ffe4 Change NewTempCertificate(), making the search for the cert and the
subsequent insertion of the cert into the DB into one atomic operation
by holding the certdb's lock around the pair of operations.  Bug 62286.
2000-12-08 03:35:29 +00:00
nelsonb%netscape.com 7a0b5a0ef2 This modification, contributed by Sun, avoids computing values >= 2^52.
This code runs much faster than the previous version on UltraSparc-3 CPUs,
and slightly slower than the previous version on UltraSparc-II CPUs.
2000-12-08 00:20:36 +00:00
relyea%netscape.com 157d2345bc Open VMS changes: bug 60143. 2000-12-07 22:23:06 +00:00
nelsonb%netscape.com 885d29d0b4 Use the new floating point Montgomery multiply code from Sun on Solaris. 2000-12-02 02:37:22 +00:00
nelsonb%netscape.com 8c2b42042f In ssl3_GatherData, the value of gs->inbuf.len was incorrect during the
GS_HEADER state.  It should be correct in all states.
In ssl_DestroyGather, prior to freeing the buffers, the code zeroed out
the ciphertext buffer.  It now zeros out the plaintext buffer instead.
2000-12-02 00:54:01 +00:00
nelsonb%netscape.com f49b012cd4 Back out a previous change to one line of this code for performance. 2000-12-01 03:58:17 +00:00
nelsonb%netscape.com 6abe6c9e6c Add new optional third argument which specifies modulus size in bytes.
Don't print values for powers 0, 1, and 2 unless the repetition count
(the optional second argument) is 1.
2000-12-01 03:56:12 +00:00
nelsonb%netscape.com 32b43a3ae6 Replace compiler-generated inner loop code with optimized code.
This optimized code was contributed by Sun Microsystems Inc.
2000-12-01 03:53:13 +00:00
nelsonb%netscape.com 196b9b582c * The Original Code is SPARC hand-optimized Montgomery multiply functions.
*
* The Initial Developer of the Original Code is Sun Microsystems Inc.
* Portions created by Sun Microsystems Inc. are
* Copyright (C) 1999-2000 Sun Microsystems Inc. All Rights Reserved.
2000-12-01 03:18:27 +00:00
nelsonb%netscape.com 291aa8039a * inline macros for SPARC Montgomery multiply functions.
*
* The Initial Developer of the Original Code is Sun Microsystems Inc.
* Portions created by Sun Microsystems Inc. are
* Copyright (C) 1999-2000 Sun Microsystems Inc. All Rights Reserved.
2000-12-01 03:17:53 +00:00
nelsonb%netscape.com 8f9113a6de Add missing error detection to identest. Change the order in which
mp_ints are destroyed to make debugging easier.  These changes
facilitated detecting and fixing bug 61394.
2000-11-29 04:07:10 +00:00
nelsonb%netscape.com 4a90b4de0b Fix bug 61394. Don't increase length of input vector by 1. Avoid
copying the vector twice.
2000-11-29 01:30:28 +00:00
nelsonb%netscape.com 2889df8598 Get the montmulf code to build, in preparation for integration into MPI. 2000-11-17 20:15:29 +00:00
mcgreer%netscape.com 1342aa1546 checkin of blinding implementation 2000-11-17 17:58:35 +00:00
mcgreer%netscape.com a5f98d63db return SEC_ERR_NEED_RANDOM when the RNG does not have sufficient seeding data to proceed. 2000-11-17 01:01:36 +00:00
mcgreer%netscape.com 0c02bcc920 these functions should be static 2000-11-17 00:59:51 +00:00