openssl/crypto/rsa
Geoff Thorpe 81d1998e09 Currently, RSA code, when using no padding scheme, simply checks that input
does not contain more bytes than the RSA modulus 'n' - it does not check
that the input is strictly *less* than 'n'. Whether this should be the
case or not is open to debate - however, due to security problems with
returning miscalculated CRT results, the 'rsa_mod_exp' implementation in
rsa_eay.c now performs a public-key exponentiation to verify the CRT result
and in the event of an error will instead recalculate and return a non-CRT
(more expensive) mod_exp calculation. As the mod_exp of 'I' is equivalent
to the mod_exp of 'I mod n', and the verify result is automatically between
0 and n-1 inclusive, the verify only matches the input if 'I' was less than
'n', otherwise even a correct CRT calculation is only congruent to 'I' (ie.
they differ by a multiple of 'n'). Rather than rejecting correct
calculations and doing redundant and slower ones instead, this changes the
equality check in the verification code to a congruence check.
2001-07-20 15:16:10 +00:00
..
.cvsignore Ignore Makefile.save 1999-04-29 16:04:54 +00:00
Makefile.ssl make update 2001-06-23 16:43:03 +00:00
rsa_asn1.c Get rid of ASN1_ITEM_FUNCTIONS dummy function 2001-02-23 12:47:06 +00:00
rsa_chk.c Constify the RSA library. 2000-11-06 22:34:17 +00:00
rsa_eay.c Currently, RSA code, when using no padding scheme, simply checks that input 2001-07-20 15:16:10 +00:00
rsa_err.c Make all configuration macros available for application by making 2001-02-19 16:06:34 +00:00
rsa_gen.c Bug fix for 64 bit HP-UX. 2000-06-01 14:24:59 +00:00
rsa_lib.c In {RSA,DSA,DH}_new_method(x) need to increase the reference 2001-06-23 23:07:34 +00:00
rsa_none.c Constify the RSA library. 2000-11-06 22:34:17 +00:00
rsa_null.c A few more constifications of some RSA routines that I forgot 2000-11-07 13:49:46 +00:00
rsa_oaep.c Change all calls to low level digest routines in the library and 2001-06-19 22:30:40 +00:00
rsa_pk1.c Constify the RSA library. 2000-11-06 22:34:17 +00:00
rsa_saos.c Constify the RSA library. 2000-11-06 22:34:17 +00:00
rsa_sign.c Add support for MS CSP Name PKCS#12 attribute. 2001-06-11 00:43:20 +00:00
rsa_ssl.c Constify the RSA library. 2000-11-06 22:34:17 +00:00
rsa_test.c Forcibly enable memory leak checking during "make test" 2001-03-11 14:49:46 +00:00
rsa.h Make all configuration macros available for application by making 2001-02-19 16:06:34 +00:00