summaryrefslogtreecommitdiffstats
path: root/crypto/rsa/rsa_oaep.c
AgeCommit message (Collapse)Author
2013-02-05Add and use a constant-time memcmp.Ben Laurie
This change adds CRYPTO_memcmp, which compares two vectors of bytes in an amount of time that's independent of their contents. It also changes several MAC compares in the code to use this over the standard memcmp, which may leak information about the size of a matching prefix. (cherry picked from commit 2ee798880a246d648ecddadc5b91367bee4a5d98) Conflicts: crypto/crypto.h ssl/t1_lib.c (cherry picked from commit dc406b59f3169fe191e58906df08dce97edb727c) Conflicts: crypto/crypto.h ssl/d1_pkt.c ssl/s3_pkt.c
2009-06-26Oops, moved too much.Dr. Stephen Henson
2009-06-26PR: 1961Dr. Stephen Henson
Submitted by: Martin Gerbershagen <martin.gerbershagen@nsn.com> Approved by: steve@openssl.org Avoid memory leak if RAND_bytes() fails.
2008-09-17Add RSA update from FIPS branch that got omitted....Dr. Stephen Henson
2008-05-19Fix two invalid memory reads in RSA OAEP mode.Dr. Stephen Henson
Submitted by: Ivan Nestlerode <inestlerode@us.ibm.com> Reviewed by: steve
2005-05-28Update from 0.9.7-stable branch.Dr. Stephen Henson
2005-05-11Fix more error codes.Bodo Möller
(Also improve util/ck_errf.pl script, and occasionally fix source code formatting.)
2001-10-16Retain compatibility of EVP_DigestInit() and EVP_DigestFinal()Dr. Stephen Henson
with existing code. Modify library to use digest *_ex() functions.
2001-09-06improve OAEP checkBodo Möller
2001-09-06fix formatting so that the file can be view with any tab-widthBodo Möller
2001-07-30Really add the EVP and all of the DES changes.Ben Laurie
2001-07-24avoid warningsBodo Möller
2001-06-19Change all calls to low level digest routines in the library andDr. Stephen Henson
applications to use EVP. Add missing calls to HMAC_cleanup() and don't assume HMAC_CTX can be copied using memcpy(). Note: this is almost identical to the patch submitted to openssl-dev by Verdon Walker <VWalker@novell.com> except some redundant EVP_add_digest_()/EVP_cleanup() calls were removed and some changes made to avoid compiler warnings.
2001-06-08more error codes fixedUlf Möller
2001-06-06when checking OAEP, signal just a single kind of 'decoding error'Bodo Möller
2001-06-06move check to avoid memory leak.Ulf Möller
2001-06-06make sure we don't write to seed[-1]Ulf Möller
2001-02-19Make all configuration macros available for application by makingRichard Levitte
sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
2001-01-24Update "OAEP reconsidered" commentBodo Möller
2000-12-05Discuss http://www.shoup.net/papers/oaep.ps.ZBodo Möller
2000-11-06Constify the RSA library.Richard Levitte
2000-06-01There have been a number of complaints from a number of sources that namesRichard Levitte
like Malloc, Realloc and especially Free conflict with already existing names on some operating systems or other packages. That is reason enough to change the names of the OpenSSL memory allocation macros to something that has a better chance of being unique, like prepending them with OPENSSL_. This change includes all the name changes needed throughout all C files.
2000-01-13Precautions against using the PRNG uninitialized: RAND_bytes() nowUlf Möller
returns int (1 = ok, 0 = not seeded). New function RAND_add() is the same as RAND_seed() but takes an estimate of the entropy as an additional argument.
1999-04-29Bug fix.Ulf Möller
1999-04-27Message digest stuff.Ulf Möller
1999-04-27New Configure option no-<cipher> (rsa, idea, rc5, ...).Ulf Möller
1999-04-23Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller
Submitted by: Reviewed by: PR:
1999-04-19Change functions to ANSI C.Ulf Möller
1999-02-17Add OAEP.Ben Laurie