Commit Graph

367 Commits

Author SHA1 Message Date
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
javi%netscape.com
f2b1d03499 zeroize the output before converting to utf8 so that we get the sting
length right in all cases.  This allows us to remove the hack where
we hard code the out length to be half the original length.  Which may
or may not be true depending on what we're converting.
2000-07-18 01:30:04 +00:00
mcgreer%netscape.com
0b57de2866 initial checkin of ARCFour. 2000-07-18 00:56:09 +00:00
javi%netscape.com
46a51b8158 Re-work some of the JavaScript for prefs so that Mozilla just "does the right thing." 2000-07-17 22:54:07 +00:00
nelsonb%netscape.com
49bfd5fc00 Fix "random" modulus so it is odd and has msb of most significant digit
set to 1, and "random" base to be less than modulus.
2000-07-17 22:37:55 +00:00
nelsonb%netscape.com
8133fdd980 Fix script to run on certain unix platforms. 2000-07-17 22:34:30 +00:00
nelsonb%netscape.com
7dc037f3a3 Shorten this test so it completes in less time. 2000-07-17 22:33:46 +00:00
nelsonb%netscape.com
bdf621e594 Fix mpp_pprime() so it doesn't stop after first succesful iteration. 2000-07-17 22:32:46 +00:00
nelsonb%netscape.com
88292a3a0d Add support for 32-bit digits (64-bit words) on platforms that can
multiply two 32-bit values yielding a 64-bit product in hardware.
Fix bug in s_mp_div that computed a quotient digit q > DIGIT_MAX
when b > DIGIT_MAX/2 and b < a <= DIGIT_MAX.
2000-07-17 22:31:18 +00:00
nelsonb%netscape.com
29b5ea6ec4 Elimintate type mismatch warning. 2000-07-17 22:23:23 +00:00
nelsonb%netscape.com
9ae84ceff8 Turn on MP_CRYPTO flag by default. Increase default size to 32 digits. 2000-07-17 22:22:28 +00:00
nelsonb%netscape.com
3e30ad8b50 Get file to work with SysV make on IRIX.
Add .i target (preprocessor output).
2000-07-17 22:21:42 +00:00
javi%netscape.com
1463cddfc4 Fix P12 import on Solaris given the new NLS package. 2000-07-15 01:18:33 +00:00
javi%netscape.com
d448e6b43c Make solaris join the realm of XPCOM 2000-07-14 23:13:45 +00:00
nelsonb%netscape.com
7ed5654089 MPI Arbitrary Precision Integer Arithmetic library.
The Initial Developer of the Original Code is
Michael J. Fromberger <sting@linguist.dartmouth.edu>
2000-07-14 00:45:02 +00:00
mcgreer%netscape.com
11bcfbe3d6 fingerprint had to handled in certutil for now since SECU_PrintCertificate receives a decoded DER. see #45303 2000-07-12 22:42:57 +00:00
mcgreer%netscape.com
d42ada9be0 add fingerprints to info dumped with certificate 2000-07-12 20:48:47 +00:00
javi%netscape.com
d87da4da0e Make viewing CA certs during import work again. 2000-07-12 00:22:23 +00:00
cotter%netscape.com
c06b1af9b3 Added info about OCSP in cases of invalid email signature. 2000-07-11 21:32:19 +00:00
javi%netscape.com
887c81b96a Fix a type-o. 2000-07-11 18:45:40 +00:00
javi%netscape.com
de26e9a4fc Make the button in the security advisor for CRL's look like the other
buttons.
2000-07-11 00:50:12 +00:00
ddrinan%netscape.com
0138d55175 Made changes to the password retry text to fix bugs 399954 and 44110 2000-07-10 22:53:58 +00:00
javi%netscape.com
09909de642 Correctly define CORE_DEPTH 2000-07-07 21:17:31 +00:00
chrisk%netscape.com
49779ca3c4 Added -d option
-p option now also works for decoding
2000-07-07 00:57:39 +00:00