nelsonb%netscape.com
cb72925c4a
Fix initalizers in logtab.h to be "float" values, not "double" values.
2000-07-31 20:36:41 +00:00
nelsonb%netscape.com
1ebd55b401
Fix build problem caused by the fact that including stdlib.h implicitly
...
includes stdio.h on some platforms, but not on others.
2000-07-31 20:08:46 +00:00
nelsonb%netscape.com
4e92230a97
Use Windowed computation of exponent in mp_exptmod().
2000-07-30 06:37:14 +00:00
nelsonb%netscape.com
71be9cf03c
Add function mpl_get_bits(). Returns value of contiguous subset of bits
...
of bignum. Useful for windowed modular exponentiation.
2000-07-30 06:35:38 +00:00
nelsonb%netscape.com
78256a8fa7
MPI Arbitrary Precision Integer Arithmetic library.
...
The Initial Developer of the Original Code is
Michael J. Fromberger <sting@linguist.dartmouth.edu>
2000-07-30 02:05:19 +00:00
nelsonb%netscape.com
97ef19c3b8
MPI Arbitrary Precision Integer Arithmetic library.
...
The Initial Developer of the Original Code is
Michael J. Fromberger <sting@linguist.dartmouth.edu>
2000-07-30 01:56:35 +00:00
nelsonb%netscape.com
792ad45230
Build mpi library files in freebl.
2000-07-29 19:07:22 +00:00
nelsonb%netscape.com
df9c21a9de
Separate DH implementation for use with BSAFE and mpi-based implementation
...
into two files.
2000-07-29 19:06:54 +00:00
nelsonb%netscape.com
534ec52daa
Build libmpi.a. Include mpmontg.o in libmpi.a. Build programs with
...
libmpi.a. Fix dependencies so lib is rebuilt when headers change.
2000-07-28 23:11:12 +00:00
nelsonb%netscape.com
6b24794435
Modular exponentiation with Montgomery reduction for MPI.
...
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-07-28 23:09:02 +00:00
nelsonb%netscape.com
71fb2fa5e4
Disambiguoate error messages in mod-expt test.
2000-07-28 23:04:23 +00:00
nelsonb%netscape.com
385fd4fc86
- Renamed mp_exptmod to s_mp_exptmod. This function is now used only in
...
when the modulus is even. mp_exptmod is now in mpmontg.c.
- Declare and define new function s_mp_mul_d_add_offset(), which computes
the product of an mp_digit and an mp_int, shifts the product to the left
by a number of digits, and adds the shifted product to another mp_int.
Used in multiplication and Montgomery reduction. Numerous platform
vendors have assembly language versions of this function.
- Removed some ANDs with DIGIT_MAX. Casting to mp_digit is necessary
and sufficient. The AND doesn't help.
2000-07-28 23:03:12 +00:00
nelsonb%netscape.com
f554a212b4
Use unsigned int for mp_digit instead of unsigned long when both are
...
32-bits. This reduced warnings. Use mp_size instead of unsigned int
in function declarations. Fix MP_DIGIT_FMT for 32-bit digits.
2000-07-28 22:55:56 +00:00
nelsonb%netscape.com
a38b5ec52f
Use mp_size instead of unsigned int in function prototypes.
2000-07-28 22:49:42 +00:00
mcgreer%netscape.com
ce6f724504
merge changes from 3.0 branch
2000-07-27 18:26:28 +00:00
nelsonb%netscape.com
99f3a8bf86
Add new function s_mp_add_offset().
...
Very handy in Montgomery reduction using Dusse' and Kalski's method.
2000-07-27 03:02:42 +00:00
nelsonb%netscape.com
b05581f7ec
Moved the declarations of many private defines and functions out of mpi.c
...
and into mpi-priv.h. Previously, mplogic.c and mpprime.c had duplicate
copies of some of those declarations. Now, they include mpi-priv.h
2000-07-27 02:38:54 +00:00
nelsonb%netscape.com
bf4e60e7b3
Fix sprintf format, can't use DIGIT_FMT.
2000-07-27 00:23:17 +00:00
wtc%netscape.com
cf5a75f8dc
Bugzilla bug #46509 : removed the use of -taso and the USE_64 makefile
...
option on OSF1.
2000-07-26 22:20:16 +00:00
nelsonb%netscape.com
ba8b232867
Move enhanced prime finder function mpp_make_prime from primegen utility
...
program into mpprime.c. declared in mpprime.h.
2000-07-26 05:41:59 +00:00
nelsonb%netscape.com
8bf87ce6bb
Fix bug in mp_div_2d that set r = q % d when a and q are the same mp_int.
...
Minor performance enhancement to s_mp_div_2d when DIGIT_BIT divides d.
2000-07-26 05:39:53 +00:00
nelsonb%netscape.com
7bb8634a3c
Fix a bug in recently added function mp_set_bit().
2000-07-26 05:32:30 +00:00
cotter%netscape.com
777b97104b
Fixed some broken links in release notes, added release notes banner.
2000-07-26 00:01:34 +00:00
nelsonb%netscape.com
b9d1a404d2
Update nTires via a pointer argument to mpp_make_prime().
...
Change some printfs.
2000-07-25 00:16:57 +00:00
nelsonb%netscape.com
aef9190b64
Add new function mpp_fermat_list, which performs the fermat test on a
...
list of "witness" numbers. Simplify and accelerate mpp_pprime().
2000-07-25 00:15:06 +00:00
nelsonb%netscape.com
cbc85c762b
Fix assertion. Comparison sense was inverted.
2000-07-25 00:12:57 +00:00
nelsonb%netscape.com
f16cc60f1a
Add -fullwarn to some build flags. Change dependencies for primegen.
2000-07-22 07:22:37 +00:00
nelsonb%netscape.com
175cab0f15
Implement sieving to accelerate elimination of composites.
...
This sieve eliminates all but about 3500 numbers from each range of 64k.
2000-07-22 05:54:21 +00:00
nelsonb%netscape.com
1f040d3f9f
Use large prime table for faster prime gen. Make prime table "const".
...
Change functions that use prime table to use const arguments.
2000-07-22 05:36:45 +00:00
nelsonb%netscape.com
41121574a7
Change s_mp_norm to always use a power of two as the normalizing factor.
...
This enhancement performance by turning the normalizing and denormalizing
operations into shifts.
2000-07-21 21:06:08 +00:00
nelsonb%netscape.com
4b4e6bccd9
Implement mpl_get_bit, mpl_set_bit, mpl_significant_bits.
2000-07-21 21:04:14 +00:00
nelsonb%netscape.com
3b292e3f60
Fix symbol prefixes in some comments.
2000-07-21 20:50:31 +00:00
ddrinan%netscape.com
13939a3e0b
Added Netscape disclamer on the security advisor page
2000-07-21 01:15:55 +00:00
javi%netscape.com
3e2ca70194
Allow signatures to be created even if there is no encryption cert to
...
be associated with the signature.
2000-07-20 21:57:31 +00:00
javi%netscape.com
d154ce33b3
Allow signatures to be created even if the user doesn't have an
...
encryption cert to go along with it.
2000-07-20 21:56:34 +00:00
roeber%netscape.com
bed9fed1db
Added tests of token object manipulation.
...
I actually did this two months ago, but forgot to
check it in before going on sabbatical.
2000-07-20 21:48:26 +00:00
mcgreer%netscape.com
36c22a2a15
some compilers don't like the void* arithmetic
2000-07-20 16:58:32 +00:00
nelsonb%netscape.com
350eea5535
Use unsigned ints for length parameters to "octets" functions.
2000-07-20 04:47:24 +00:00
nelsonb%netscape.com
7f70f07983
Eliminate lots of warnings found by -fullwarn.
...
Add sanity test to s_mp_div().
2000-07-20 04:21:37 +00:00
nelsonb%netscape.com
04007f8bb5
Eliminate warnings found with -fullwarn.
2000-07-20 04:20:21 +00:00
mcgreer%netscape.com
dbede1a951
Change the startup/shutdown procedure. Now a minimum amount of seed bytes, MIN_SEED_COUNT, are required before output bytes can be extracted. Also, it is possible to do a full restart by calling RNG_RNGInit() and RNG_RNGShutdown() in succession. This is noted in the blapi.h comments for those functions.
2000-07-19 23:54:43 +00:00
nelsonb%netscape.com
5a1cb37329
Build all mpi .c files with -DMP_API_COMPATIBLE
2000-07-19 23:23:24 +00:00
nelsonb%netscape.com
94e36d6f32
Implement 5 new functions for dealing with variable length integers
...
represented as unsigned and signed octet strings.
mp_read_unsigned_octets(), mp_unsigned_octet_size(),
mp_to_unsigned_octets(), mp_to_signed_octets(), mp_to_fixlen_octets()
See mpi.h for more info.
2000-07-19 23:22:43 +00:00
nelsonb%netscape.com
9ab0d70f0e
All #defines now have MP_ prefix. To get old #defines, compile with
...
-DMP_API_COMPATIBLE . mpi.c is compiled that way.
2000-07-19 23:18:08 +00:00
ddrinan%netscape.com
42a6ceda94
Fix for getting ca name
2000-07-19 22:10:55 +00:00
ddrinan%netscape.com
022f0f8362
Fix for cert renewal bug
2000-07-19 21:21:46 +00:00
mcgreer%netscape.com
adc97e5caf
initial checkin of PRNG code
2000-07-19 17:01:31 +00:00
ddrinan%netscape.com
b1a4541e5b
Fix pickle and unpickle of the CA name
2000-07-19 00:21:39 +00:00
javi%netscape.com
d518c4138c
Modify JavaScript for prefs so that Mozilla correctly saves them.
2000-07-18 21:53:08 +00:00
javi%netscape.com
640da2a6a3
Fix the printf parameter.
2000-07-18 18:21:51 +00:00