summaryrefslogtreecommitdiffstats
path: root/crypto/des/des_enc.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright yearMatt Caswell2020-04-231-1/+1
| | | | | Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11616)
* Deprecate the low level DES functions.Pauli2020-01-251-0/+6
| | | | | | | | | | | | Use of the low level DES functions has been informally discouraged for a long time. We now formally deprecate them. Applications should instead use the EVP APIs, e.g. EVP_EncryptInit_ex, EVP_EncryptUpdate, EVP_EncryptFinal_ex, and the equivalently named decrypt functions. Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/10858)
* Reorganize local header filesDr. Matthias St. Pierre2019-09-281-1/+1
| | | | | | | | | | | | | Apart from public and internal header files, there is a third type called local header files, which are located next to source files in the source directory. Currently, they have different suffixes like '*_lcl.h', '*_local.h', or '*_int.h' This commit changes the different suffixes to '*_local.h' uniformly. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9333)
* Following the license change, modify the boilerplates in crypto/des/Richard Levitte2018-12-061-1/+1
| | | | | | | [skip ci] Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/7787)
* Remove email addresses from source code.Rich Salz2017-10-131-4/+2
| | | | | | | | | | Names were not removed. Some comments were updated. Replace Andy's address with openssl.org Reviewed-by: Andy Polyakov <appro@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/4516)
* Copyright consolidation 07/10Rich Salz2016-05-171-54/+6
| | | | Reviewed-by: Richard Levitte <levitte@openssl.org>
* Remove outdated legacy crypto optionsRich Salz2016-01-281-40/+0
| | | | | | | | | | | | | | | | | | | | | | Many options for supporting optimizations for legacy crypto on legacy platforms have been removed. This simplifies the source code and does not really penalize anyone. DES_PTR (always on) DES_RISC1, DES_RISC2 (always off) DES_INT (always 'unsigned int') DES_UNROLL (always on) BF_PTR (always on) BF_PTR2 (removed) MD2_CHAR, MD2_LONG (always 'unsigned char') IDEA_SHORT, IDEA_LONG (always 'unsigned int') RC2_SHORT, RC2_LONG (always 'unsigned int') RC4_LONG (only int and char (for assembler) are supported) RC4_CHUNK (always long), RC_CHUNK_LL (removed) RC4_INDEX (always on) And also make D_ENCRYPT macro more clear (@appro) This is done in consultation with Andy. Reviewed-by: Andy Polyakov <appro@openssl.org>
* Remove /* foo.c */ commentsRich Salz2016-01-261-1/+0
| | | | | | | | | | | | This was done by the following find . -name '*.[ch]' | /tmp/pl where /tmp/pl is the following three-line script: print unless $. == 1 && m@/\* .*\.[ch] \*/@; close ARGV if eof; # Close file to reset $. And then some hand-editing of other files. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-311/+300
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* reinclude crypto.h: this is needed in HEAD only to get the __fips_constseg ↵Dr. Stephen Henson2012-07-181-0/+1
| | | | definition
* Version skew reduction: trivia (I hope).Ben Laurie2012-06-041-1/+0
|
* Experimental symbol renaming to avoid clashes with regular OpenSSL.Dr. Stephen Henson2011-02-161-0/+1
| | | | Make sure crypto.h is included first in any affected files.
* Optimize #undef DES_UNROLL for size.Andy Polyakov2008-12-221-12/+4
|
* Move DES_SPtrans to where it really belongs, dec_enc to be specific.Andy Polyakov2005-10-251-0/+1
|
* Rename des_SPtrans to DES_SPtrans to differentiate from libdes and avoid ↵Richard Levitte2002-03-041-4/+4
| | | | certain linkage clashes.
* Due to an increasing number of clashes between modern OpenSSL andRichard Levitte2001-10-241-21/+21
| | | | | | | | | | | | 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.
* Make EVPs allocate context memory, thus making them extensible. RationaliseBen Laurie2001-07-301-10/+11
| | | | | | | | | 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.
* Since there has been reports of clashes between OpenSSL'sRichard Levitte2001-03-291-1/+1
| | | | | | | | 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.
* More DES library cleanups: remove references to srand/randUlf Möller1999-07-161-1/+1
| | | | and delete an unused file.
* Unify DES library: ncbc_enc.c wasn't used, but its content was almostBodo Möller1999-06-091-73/+2
| | | | | | | | | | | | | | | | duplicated in cbc_enc.c (without IV updating) and in des_enc.c As pointed out by others on the openssl-dev list, des_cbc_encrypt (without IV updating; defined in cbc_enc.c) exists only for historical reasons: des_ncbc_encrypt should be used instead (and the caller does not have to manually update the IV). If des_cbc_enrypt is not needed for backwards compatibility, the definition of des_ncbc_encrypt should be put back into des_enc.c, and both cbc_enc.c and ncbc_enc.c can be deleted. If des_cbc_encrypt *is* needed for backwards compatibility, its behaviour obviously should not change (i.e., don't add IV updating).
* Don't #define _, and eliminate casts.Ulf Möller1999-06-081-2/+2
|
* Change type of various DES function arguments from des_cblockBodo Möller1999-05-161-8/+8
| | | | | | | | | | | | | | (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).
* Change functions to ANSI C.Ulf Möller1999-04-191-34/+11
|
* Massive constification.Ben Laurie1999-04-171-8/+9
|
* Finally(?) fix DES stuff.Ben Laurie1999-02-131-13/+10
|
* Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall1998-12-211-5/+206
|
* Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall1998-12-211-0/+301