openssl/crypto
Richard Levitte 6ab285bf4c I think I got it now. Apparently, the case of having to shift down
the divisor was a bit more complex than I first saw.  The lost bit
can't just be discarded, as there are cases where it is important.
For example, look at dividing 320000 with 80000 vs. 80001 (all
decimals), the difference is crucial.  The trick here is to check if
that lost bit was 1, and in that case, do the following:

1. subtract the quotient from the remainder
2. as long as the remainder is negative, add the divisor (the whole
   divisor, not the shofted down copy) to it, and decrease the
   quotient by one.

There's probably a nice mathematical proof for this already, but I
won't bother with that, unless someone requests it from me.
2002-12-02 21:31:45 +00:00
..
aes WinCE patches 2002-11-15 22:37:18 +00:00
asn1 Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
bf Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
bio WinCE patches 2002-11-15 22:37:18 +00:00
bn I think I got it now. Apparently, the case of having to shift down 2002-12-02 21:31:45 +00:00
buffer Remove warnings. 2002-11-14 15:57:38 +00:00
cast Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
comp Use double dashes so makedepend doesn't misunderstand the flags we 2002-10-09 13:25:12 +00:00
conf Handle last lines that aren't properly terminated. 2002-11-14 06:51:18 +00:00
des Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
dh Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
dsa EXIT() needs to be in a function that returns int. 2002-12-01 01:23:35 +00:00
dso WinCE patches 2002-11-15 22:37:18 +00:00
ec Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
ecdh Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
ecdsa Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
engine WinCE patches 2002-11-15 22:37:18 +00:00
err makedepend complains when a header file is included more than once in 2002-10-14 10:02:36 +00:00
evp EXIT() needs to be in a function that returns int. 2002-12-01 01:23:35 +00:00
hmac Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
idea Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
krb5 Use double dashes so makedepend doesn't misunderstand the flags we 2002-10-09 13:25:12 +00:00
lhash Security fixes brought forward from 0.9.7. 2002-11-13 15:43:43 +00:00
md2 A few more memset()s converted to OPENSSL_cleanse(). 2002-11-29 11:30:45 +00:00
md4 A few more memset()s converted to OPENSSL_cleanse(). 2002-11-29 11:30:45 +00:00
md5 A few more memset()s converted to OPENSSL_cleanse(). 2002-11-29 11:30:45 +00:00
mdc2 A few more memset()s converted to OPENSSL_cleanse(). 2002-11-29 11:30:45 +00:00
objects make update 2002-11-15 11:20:43 +00:00
ocsp Correct support for SunOS 4.1.3_U1. 2002-11-13 16:11:14 +00:00
pem A few more memset()s converted to OPENSSL_cleanse(). 2002-11-29 11:30:45 +00:00
perlasm Further enhance assembler support on Cygwin and DJGPP. 2002-07-18 12:37:59 +00:00
pkcs7 Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
pkcs12 Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
rand Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
rc2 Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
rc4 Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
rc5 Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
ripemd Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
rsa Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
sha Have all tests use EXIT() to exit rather than exit(), since the latter doesn't 2002-11-28 18:54:30 +00:00
stack Use double dashes so makedepend doesn't misunderstand the flags we 2002-10-09 13:25:12 +00:00
threads Use new-style system-id macros everywhere possible. I hope I haven't 2001-02-20 08:13:47 +00:00
txt_db Security fixes brought forward from 0.9.7. 2002-11-13 15:43:43 +00:00
ui Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
x509 Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
x509v3 Fix get_email: 0 is a valid return value 2002-11-14 00:46:11 +00:00
.cvsignore Always use buildinf.h, which now includes the mk1mfinf.h data. 1999-07-29 12:57:23 +00:00
cpt_err.c First step in fixing "ex_data" support. Warning: big commit log ... 2001-09-01 19:56:46 +00:00
cryptlib.c Security fixes brought forward from 0.9.7. 2002-11-13 15:43:43 +00:00
cryptlib.h Merge from 0.9.7-stable. 2002-11-13 18:10:30 +00:00
crypto-lib.com Add OPENSSL_cleanse() to help cleanse memory and avoid certain compiler 2002-11-27 12:24:05 +00:00
crypto.h Add OPENSSL_cleanse() to help cleanse memory and avoid certain compiler 2002-11-27 12:24:05 +00:00
cversion.c Add SSLEAY_DIR argument code for SSLeay_version. 2001-01-10 15:15:36 +00:00
ebcdic.c The default C compiler on MacOS X doesn't like empty object files 2002-07-16 10:46:00 +00:00
ebcdic.h EBCDIC support. 2000-02-01 02:21:16 +00:00
ex_data.c Redo type-safety fix. 2001-09-07 11:43:30 +00:00
install.com A new header. 2002-08-09 22:34:57 +00:00
Makefile.ssl Add OPENSSL_cleanse() to help cleanse memory and avoid certain compiler 2002-11-27 12:24:05 +00:00
md32_common.h Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
mem_clr.c Add OPENSSL_cleanse() to help cleanse memory and avoid certain compiler 2002-11-27 12:24:05 +00:00
mem_dbg.c fix memory leak in memory debuggin code ... 2002-11-18 14:00:42 +00:00
mem.c Cleanse memory using the new OPENSSL_cleanse() function. 2002-11-28 08:04:36 +00:00
o_time.c Patches to make OpenSSL compilable on MacOS/X. 2002-01-08 09:19:31 +00:00
o_time.h Use one address consistently. 2001-07-05 10:20:07 +00:00
opensslconf.h.in GCC uses __i386__. 2002-01-26 03:57:41 +00:00
opensslv.h The version of the shared library should, for now, reflect the version 2002-07-31 13:24:26 +00:00
ossl_typ.h Initial ASN1 generation code. This can construct 2002-11-12 13:34:51 +00:00
symhacks.h Remove clashes between symbols that have the same name except for 2002-08-11 12:23:08 +00:00
tmdiff.c Determine HZ exactly as in apps/speed.c. 2002-11-18 23:06:36 +00:00
tmdiff.h Remove NOPROTO definitions and error code comments. 1999-04-26 16:43:10 +00:00
uid.c Add a few more VxWorks targets. 2002-10-09 13:40:48 +00:00