summaryrefslogtreecommitdiffstats
path: root/crypto/des/destest.c
AgeCommit message (Collapse)Author
2003-07-27Unfinished FIPS stuff for review/improvement.Ben Laurie
2003-05-29PR: 630Richard Levitte
Avoid looking outside the key_data array.
2003-02-13Oh, the destest program did look at the return value...Richard Levitte
2002-10-06Since crypt() isn't defined anywhere, define it locally in destest.cRichard Levitte
2002-03-22Key schedules are given as arguments a bit differently in 0.9.6 andRichard Levitte
earlier. Also, it was an error to define crypt() at all times.
2002-03-22Change des_old.h so OpenSSL 0.9.6 compatibility is default. One mustRichard Levitte
define OPENSSL_DES_LIBDES_COMPATIBILITY to get libdes compatibility. At the same time, correct a couple of argument errors for the cfb encryption routines. Make destest use as much of the old API as possible, to make sure it works properly. Other tests will use the new API...
2001-11-06des_old.h doesn't really need to include des.h, so don't. That willRichard Levitte
avoid clashes with other code that have their own DES_ functions but really only use OpenSSL's old des_ functions.
2001-10-24Due to an increasing number of clashes between modern OpenSSL andRichard Levitte
libdes (which is still used out there) or other des implementations, the OpenSSL DES functions are renamed to begin with DES_ instead of des_. Compatibility routines are provided and declared by including openssl/des_old.h. Those declarations are the same as were in des.h when the OpenSSL project started, which is exactly how libdes looked at that time, and hopefully still looks today. The compatibility functions will be removed in some future release, at the latest in version 1.0.
2001-07-30Make EVPs allocate context memory, thus making them extensible. RationaliseBen Laurie
DES's keyschedules. I know these two should be separate, and I'll back out the DES changes if they are deemed to be an error. Note that there is a memory leak lurking in SSL somewhere in this version.
2001-02-22Use e_os2.h rather than opensslconf.h, since some needed macros areRichard Levitte
defined there.
2001-02-20Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte
missed any. This compiles and runs on Linux, and external applications have no problems with it. The definite test will be to build this on VMS.
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.
2000-03-22Fix a memory leak in PKCS12_parse.Dr. Stephen Henson
Don't copy private key to X509 etc public key structures. Fix for warning.
2000-03-19des_quad_cksum() byte order bug fix.Ulf Möller
See http://www.pdc.kth.se/kth-krb/ Their solution for CRAY is somewhat awkward. I'll assume that a "short" is 32 bits on CRAY to avoid the #ifdef _CRAY typedef struct { unsigned int a:32; unsigned int b:32; } XXX; #else typedef DES_LONG XXX; #endif
2000-02-25The main() return value is a program's exit code.Ulf Möller
2000-02-25More VC++ pickiness. (destest.c doesn't have a "return" and the usualGeoff Thorpe
signed/unsigned stuff in s3_pkt.c) Submitted by: Reviewed by: PR:
2000-02-04New xcbc_ok test vector is required after the parity bits in cbc2_keyAndy Polyakov
were fixed up. The catch is that in the DESX test the cbc2_key is used as whitening key where *all* 64 bits are significant.
2000-01-24Give the correct e-mail address even though the message is not quite seriousBodo Möller
2000-01-24The des_xcbc_encrypt apparently always fails.Bodo Möller
Workaround so that "make test" continues anyway.
2000-01-22fail on all errors.Ulf Möller
1999-12-03Add functions des_set_key_checked, des_set_key_unchecked.Bodo Möller
Never use des_set_key (it depends on the global variable des_check_key), but usually des_set_key_unchecked. Only destest.c bothered to look at the return values of des_set_key, but it did not set des_check_key -- if it had done so, most checks would have failed because of wrong parity and because of weak keys.
1999-10-25Improve support for running everything as a monolithic application.Bodo Möller
Submitted by: Lennart Bång, Bodo Möller
1999-06-12Avoid some warnings (on silly compilers).Bodo Möller
1999-06-09Some pre-POSIX systems don't have unistd.h (but e.g. lib.c).Bodo Möller
Allow configuring the name of that header file.
1999-05-16Change type of various DES function arguments from des_cblockBodo Möller
(meaning pointer to char) to des_cblock * (meaning pointer to array with 8 char elements), which allows the compiler to do more typechecking. (The changed argument types were of type des_cblock * back in SSLeay, and a lot of ugly casts were used then to turn them into pointers to elements; but it can be done without those casts.) Introduce new type const_des_cblock -- before, the pointers rather than the elements pointed to were declared const, and for some reason gcc did not complain about this (but some other compilers did).
1999-05-13VMS support.Ulf Möller
Submitted by: Richard Levitte <richard@levitte.org>
1999-04-27New Configure option no-<cipher> (rsa, idea, rc5, ...).Ulf Möller
1999-04-26Remove NOPROTO definitions and error code comments.Ulf Möller
1999-04-23Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller
Submitted by: Reviewed by: PR:
1999-04-23Work with -pedantic!Ben Laurie
1999-04-20Fix lots of warnings.Ulf Möller
Submitted by: Richard Levitte <levitte@stacken.kth.se>
1999-04-19Change functions to ANSI C.Ulf Möller
1999-02-13Update dependencies.Ben Laurie
1999-02-13Fix ghastly DES declarations, and all consequential warnings.Ben Laurie
1999-02-13Add support for 3DES CBCM mode.Ben Laurie
1998-12-21Import of old SSLeay release: SSLeay 0.9.1b (unreleased)SSLeayRalf S. Engelschall
1998-12-21Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall
1998-12-21Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall