aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/des/des.h
Commit message (Collapse)AuthorAgeFilesLines
* Update from stable branch.Dr. Stephen Henson2008-05-201-1/+2
|
* Add the missing parts for DES CFB1 and CFB8.Richard Levitte2004-01-281-0/+4
| | | | | Add the corresponding AES parts while I'm at it. make update
* Make sure we get the definition of OPENSSL_EXTERN, OPENSSL_NO_DES,Richard Levitte2003-03-201-3/+3
| | | | DES_LONG and OPENSSL_NO_DESCBCM.
* Since HEADER_DES_H has been the protector of des.h since libdesRichard Levitte2002-12-111-2/+2
| | | | | | | | | | | (before SSLeay, maybe?), it's better to have that macro protect the compatibility header des_old.h. In the new des.h, let's use a slightly different protecting macro. The rationale is that there are application that might include (via other header files, perhaps) both an old libdes des.h and OpenSSL's des.h. Whichever comes first would overshadow the other because of the clash in protecting macro. This fix solves that problem.
* Add the possibility to enable olde des support, not just disable it, for ↵Richard Levitte2002-03-261-0/+6
| | | | future support. Redocument
* Add the mapping of des_random_seed() for 0.9.6 compatibility.Richard Levitte2002-03-261-4/+4
| | | | | Make sure DES_cblock is defined at all times (meaning one shouldn't include openssl/des_old.h directly any more).
* With the changed des_old API, let's complete the work by renaming theRichard Levitte2002-02-051-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | functions in ui_compat. This gave reason to rework that part more thoroughly, so here are the changes made: 1. Add DES_read_password() and DES_read_2passwords() with the same functionality as the corresponding old des_ functions, as a convenience to the users. 2. Add UI_UTIL_read_pw_string() and UI_UTIL_read_pw() with the functionality from des_read_pw_string() and des_read_pw(), again as a concenience to the users. 3. Rename des_read_password(), des_read_2passwords(), des_read_pw_string() and des_read_pw() by changing des_ to _ossl_old_des_, and add the usual mapping macros. 4. Move the implementation of des_read_password() and des_read_2passwords() to the des directory, since they are tightly tied to DES anyway. This change was inspired by a patch from Assar Westerlund <assar@sics.se>: There are some functions that didn't get the kick-away-old-des-and- replace-des-with-DES action. Here's a patch that adds DES_ and des_ (in des_old.h) versions of des_read_pw_string et al. This patch includes some of the first des_old.h semi-colon macro fixes that I've already sent.
* New functionsBodo Möller2002-01-241-1/+1
| | | | | | | | | | | ERR_peek_last_error ERR_peek_last_error_line ERR_peek_last_error_line_data (supersedes ERR_peek_top_error). Rename OPENSSL_NO_OLD_DES_SUPPORT into OPENSSL_DISABLE_OLD_DES_SUPPORT because OPENSSL_NO_... indicates disabled algorithms (according to mkdef.pl).
* Support old DES APIs by default.Ben Laurie2002-01-221-0/+4
|
* Remove DES_random_seed() but retain des_random_seed() for now. ChangeRichard Levitte2001-10-251-1/+0
| | | | the docs to reflect this change and correct libeay.num.
* Due to an increasing number of clashes between modern OpenSSL andRichard Levitte2001-10-241-145/+107
| | | | | | | | | | | | 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.
* unused functionUlf Möller2001-09-061-1/+0
|
* Remove old unused stuff.Ben Laurie2001-07-311-4/+0
|
* Make EVPs allocate context memory, thus making them extensible. RationaliseBen Laurie2001-07-301-42/+46
| | | | | | | | | 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.
* Move the password reading functions completely away from the DESRichard Levitte2001-05-131-9/+0
| | | | | | | section. Add ui_compat.h for inclusion by those who want the old functions and provide all of them, not just the higher-level ones, in ui_compat.c.
* #if 0 out deleted (?) functions to stop Win32 DLLDr. Stephen Henson2001-05-131-1/+4
| | | | build falling over.
* Since there has been reports of clashes between OpenSSL'sRichard Levitte2001-03-291-4/+4
| | | | | | | | des_encrypt() and des_encrypt() defined on some systems (Solaris and Unixware and maybe others), we rename des_encrypt() to des_encrypt1(). This should have very little impact on external software unless someone has written a mode of DES, since that's all des_encrypt() is meant for.
* Introduce the possibility to access global variables throughRichard Levitte2001-03-021-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | functions on platform were that's the best way to handle exporting global variables in shared libraries. To enable this functionality, one must configure with "EXPORT_VAR_AS_FN" or defined the C macro "OPENSSL_EXPORT_VAR_AS_FUNCTION" in crypto/opensslconf.h (the latter is normally done by Configure or something similar). To implement a global variable, use the macro OPENSSL_IMPLEMENT_GLOBAL in the source file (foo.c) like this: OPENSSL_IMPLEMENT_GLOBAL(int,foo)=1; OPENSSL_IMPLEMENT_GLOBAL(double,bar); To declare a global variable, use the macros OPENSSL_DECLARE_GLOBAL and OPENSSL_GLOBAL_REF in the header file (foo.h) like this: OPENSSL_DECLARE_GLOBAL(int,foo); #define foo OPENSSL_GLOBAL_REF(foo) OPENSSL_DECLARE_GLOBAL(double,bar); #define bar OPENSSL_GLOBAL_REF(bar) The #defines are very important, and therefore so is including the header file everywere where the defined globals are used. The macro OPENSSL_EXPORT_VAR_AS_FUNCTION also affects the definition of ASN.1 items, but that structure is a bt different. The largest change is in util/mkdef.pl which has been enhanced with better and easier to understand logic to choose which symbols should go into the Windows .def files as well as a number of fixes and code cleanup (among others, algorithm keywords are now sorted lexicographically to avoid constant rewrites).
* Make all configuration macros available for application by makingRichard Levitte2001-02-191-1/+1
| | | | | | | | | | | | 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.
* If OPENSSL_BUILD_SHLIBCRYPTO (for files that end up as libcryptoRichard Levitte2000-12-311-0/+5
| | | | | | | objects) or OPENSSL_BUILD_SHLIBSSL (for files that end up as libssl objects) is defined, redefine OPENSSL_EXTERN to be OPENSSL_EXPORT. This is actually only important on Win32, and can safely be ignored in all other cases, at least for now.
* Various Win32 related fixes. Doesn't compile yet onDr. Stephen Henson2000-12-211-1/+0
| | | | | | | | | | | | | | Win32 but it is getting there... Update mkdef.pl to handle ASN1_ANY and fix headers. Stop various VC++ warnings. Include some fixes from "Peter 'Luna' Runestig" <peter@runestig.com> Remove external declaration for des_set_weak_key_flag: it doesn't exist.
* #include <stdio.h> not needed.Ulf Möller2000-05-311-1/+0
|
* In Message-ID: <003201bfb332$14a07520$0801a8c0@janm.transactionsite.com>,Richard Levitte2000-05-021-4/+4
| | | | | | "Jan Mikkelsen" <janm@transactionsite.com> correctly states that the OpenSSL header files have #include's and extern "C"'s in an incorrect order. Thusly fixed.
* cleanup.Ulf Möller2000-03-191-8/+21
|
* Generate just one error code if iterated SSL_CTX_get() fails.Bodo Möller2000-02-051-1/+1
| | | | Avoid enabled 'assert()' in production library.
* Add functions des_set_key_checked, des_set_key_unchecked.Bodo Möller1999-12-031-0/+5
| | | | | | | | | 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.
* No use in naming the cblock _; the structure still is incompatibleUlf Möller1999-07-291-1/+1
| | | | to Kerberos.
* Restore compability with kerberos/des.h (I had deleted some seemingly uselessUlf Möller1999-07-291-40/+35
| | | | definitions such as C_Block earlier).
* VMS updates.Ulf Möller1999-07-281-1/+5
| | | | Submitted by: Richard Levitte <levitte@stacken.kth.se>
* des_cbc_encrypt / des_ncbc_encrypt issue.Bodo Möller1999-06-091-0/+1
|
* Call our crypt implementation des_crypt(). crypt() now is a wrapper ifUlf Möller1999-06-081-8/+1
| | | | there is no system crypt() available.
* Don't #define _, and eliminate casts.Ulf Möller1999-06-081-7/+2
|
* gcc (in some versions) doesn't like the const_des_cblock typedef.Bodo Möller1999-05-171-1/+6
| | | | So omit it for now :-(
* Change type of various DES function arguments from des_cblockBodo Möller1999-05-161-37/+39
| | | | | | | | | | | | | | (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).
* Use OPENSSL_GLOBAL, OPENSSL_EXTERN instead of GLOBAL and EXTERN.Bodo Möller1999-05-151-1/+1
|
* Use e_os2.h, not e_os.h in exported header file des.h.Bodo Möller1999-05-151-4/+4
|
* VMS support.Ulf Möller1999-05-131-3/+9
| | | | Submitted by: Richard Levitte <richard@levitte.org>
* New Configure option no-<cipher> (rsa, idea, rc5, ...).Ulf Möller1999-04-271-0/+4
|
* Remove NOPROTO definitions and error code comments.Ulf Möller1999-04-261-61/+0
|
* Various header consistency fixes.Dr. Stephen Henson1999-04-251-0/+3
|
* Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller1999-04-231-1/+1
| | | | | | Submitted by: Reviewed by: PR:
* Work with -pedantic!Ben Laurie1999-04-231-2/+2
|
* Remove references to .org header file names.Ulf Möller1999-04-221-1/+1
|
* Move all autogenerated header file parts to crypto/opensslconf.h.Ulf Möller1999-04-211-0/+302
|
* Deal with generated files.Ben Laurie1998-12-281-303/+0
|
* Import of old SSLeay release: SSLeay 0.9.1b (unreleased)Ralf S. Engelschall1998-12-211-0/+2
|
* Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall1998-12-211-4/+0
|
* Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall1998-12-211-0/+305