aboutsummaryrefslogtreecommitdiffstats
path: root/apps/enc.c
Commit message (Collapse)AuthorAgeFilesLines
* All kinds of changes from branch OpenSSL_0_9_7-stableRichard Levitte2005-04-301-7/+46
|
* Use BUF_strlcpy() instead of strcpy().Richard Levitte2003-12-271-3/+3
| | | | | | | Use BUF_strlcat() instead of strcat(). Use BIO_snprintf() instead of sprintf(). In some cases, keep better track of buffer lengths. This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
* A general spring-cleaning (in autumn) to fix up signed/unsigned warnings.Geoff Thorpe2003-10-291-1/+1
| | | | | | | | | | I have tried to convert 'len' type variable declarations to unsigned as a means to address these warnings when appropriate, but when in doubt I have used casts in the comparisons instead. The better solution (that would get us all lynched by API users) would be to go through and convert all the function prototypes and structure definitions to use unsigned variables except when signed is necessary. The proliferation of (signed) "int" for strictly non-negative uses is unfortunate.
* Add the possibility to build without the ENGINE framework.Richard Levitte2003-01-301-0/+10
| | | | PR: 287
* EXIT() may mean return(). That's confusing, so let's have it really meanRichard Levitte2002-12-031-1/+1
| | | | | | exit() in whatever way works for the intended platform, and define OPENSSL_EXIT() to have the old meaning (the name is of course because it's only used in the openssl program)
* Cleanse memory using the new OPENSSL_cleanse() function.Richard Levitte2002-11-281-2/+2
| | | | I've covered all the memset()s I felt safe modifying, but may have missed some.
* Security fixes brought forward from 0.9.7.Ben Laurie2002-11-131-8/+8
|
* Add missing prototypes.Lutz Jänicke2002-06-131-1/+1
| | | | | Submitted by: Goetz Babin-Ebell <babinebell@trustcenter.de> PR: 89
* Allow longer program names (VMS allows up to 39 characters).Richard Levitte2002-04-061-2/+2
| | | | Submitted by Compaq.
* Config code updates.Dr. Stephen Henson2002-02-221-0/+3
| | | | | | | | | | | | | | | | | | | CONF_modules_unload() now calls CONF_modules_finish() automatically. Default use of section openssl_conf moved to CONF_modules_load() Load config file in several openssl utilities. Most utilities now load modules from the config file, though in a few (such as version) this isn't done because it couldn't be used for anything. In the case of ca and req the config file used is the same as the utility itself: that is the -config command line option can be used to specify an alternative file.
* Reduce the header dependencies on engine.h in apps/.Geoff Thorpe2001-09-121-1/+0
|
* When only the key is given to "enc", the IV is undefinedLutz Jänicke2001-07-031-0/+8
| | | | (found by Andy Brown <logic@warthog.com>).
* Use apps_shutdown() in all applications, in case someone decides notRichard Levitte2001-06-231-0/+1
| | | | | | | to go the monolith way (does anyone do that these days?). NOTE: a few applications are missing in this commit. I've a few more changes in them that I haven't tested yet.
* Change all calls to low level digest routines in the library andDr. Stephen Henson2001-06-191-3/+0
| | | | | | | | | | 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.
* Provide an application-common setup function for engines and use itRichard Levitte2001-06-181-17/+1
| | | | everywhere.
* Use new-style system-id macros everywhere possible. I hope I haven'tRichard Levitte2001-02-201-1/+1
| | | | | | | 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.
* 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.
* Option to disable standard block padding with EVP API.Dr. Stephen Henson2001-02-141-0/+9
| | | | | | Add -nopad option to enc command. Update docs.
* Rijdael CBC mode and partial undebugged SSL support.Ben Laurie2001-02-061-0/+3
|
* 'char' argument to islower must be converted to 'unsigned char'Bodo Möller2001-01-101-1/+1
|
* Better handling of EVP names, add EVP to speed.Ben Laurie2000-11-201-69/+23
|
* Make Rijndael work! Those long flights have some good points.Ben Laurie2000-11-121-3/+3
|
* Merge the engine branch into the main trunk. All conflicts resolved.Richard Levitte2000-10-261-0/+27
| | | | At the same time, add VMS support for Rijndael.
* The experimental Rijndael code moved to the main trunk.Richard Levitte2000-10-141-0/+5
| | | | make update done.
* On VMS, stdout may very well lead to a file that is written to in aRichard Levitte2000-09-201-1/+9
| | | | | | | | | | | | | | | | | record-oriented fashion. That means that every write() will write a separate record, which will be read separately by the programs trying to read from it. This can be very confusing. The solution is to put a BIO filter in the way that will buffer text until a linefeed is reached, and then write everything a line at a time, so every record written will be an actual line, not chunks of lines and not (usually doesn't happen, but I've seen it once) several lines in one record. Voila, BIO_f_linebuffer() is born. Since we're so close to release time, I'm making this VMS-only for now, just to make sure no code is needlessly broken by this. After the release, this BIO method will be enabled on all other platforms as well.
* There have been a number of complaints from a number of sources that namesRichard Levitte2000-06-011-6/+6
| | | | | | | | | 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.
* Add -pass argument to 'enc'.Dr. Stephen Henson2000-02-171-2/+17
| | | | Fix to make Win32 compile work again.
* Make gcc 2.95.2 happy again, even under ``-Wall -Wshadow -Wpointer-arith ↵Ralf S. Engelschall2000-02-111-0/+2
| | | | | | -Wcast-align -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline''.
* ispell (and minor modifications)Ulf Möller2000-02-031-1/+1
|
* RAND_load_file(..., -1) now means "read the complete file";Bodo Möller2000-01-241-1/+1
| | | | | | | | | this is what we now use to read $RANDFILE / $HOME/.rnd. (Previously, after 'cat'ting lots of stuff into .rnd only the first MB would be looked at.) Bugfix for apps/enc.c: Continue if RAND_pseudo_bytes returns 0 (only -1 is an error).
* RAND_pseudo_bytes is good enough for encryption IVs,Bodo Möller2000-01-241-4/+1
| | | | | we should not need RAND_bytes (and we cannot use the latter unless we load a seed file)
* add ERR_print_errors after "end" label.Bodo Möller2000-01-211-0/+1
|
* Check RAND_bytes() return value or use RAND_pseudo_bytes().Ulf Möller2000-01-211-1/+5
|
* Make salting the default. Fail gracefully if the input is not salted.Ben Laurie1999-11-301-5/+16
|
* Fix warning.Ben Laurie1999-11-181-1/+1
|
* Add a salt to the key derivation using the 'enc' program.Dr. Stephen Henson1999-11-161-37/+84
|
* Don't mix real tabs with tabs expanded as 8 spaces -- that'sBodo Möller1999-06-071-2/+2
| | | | a pain to read when using 4-space tabs.
* Cut&paste error.Ulf Möller1999-05-131-2/+2
|
* Update NO_* macros.Ulf Möller1999-04-271-4/+4
|
* New Configure option no-<cipher> (rsa, idea, rc5, ...).Ulf Möller1999-04-271-1/+1
|
* Remove NOPROTO definitions and error code comments.Ulf Möller1999-04-261-5/+0
|
* Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller1999-04-231-7/+7
| | | | | | Submitted by: Reviewed by: PR:
* Change functions to ANSI C.Ulf Möller1999-04-191-7/+2
|
* Massive constification.Ben Laurie1999-04-171-1/+1
|
* Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall1998-12-211-3/+19
|
* Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall1998-12-211-0/+545