Commit Graph

293 Commits

Author SHA1 Message Date
Milan Broz
448c401fbc Version 1.1.0.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@181 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-17 10:28:56 +00:00
Milan Broz
1a947a573b If gcrypt compiled with capabilities, document workaround for cryptsetup (see lib/gcrypt.c).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@180 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-17 10:20:15 +00:00
Milan Broz
6c3a4cf331 Remove nonfuctional default values from help (and reformat table).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@179 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-15 14:27:32 +00:00
Milan Broz
37d693cfc2 Fix missing includes on recent systems.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@178 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-15 11:11:37 +00:00
Milan Broz
925dac2c50 Fix hash lowercase conversion for malformed string.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@177 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-15 10:42:06 +00:00
Milan Broz
d93a925b5c Check for required minumum gcrypt version.
(also ensure that gcrypt global init is called,
see http://lists.gnupg.org/pipermail/gcrypt-devel/2003-August/000458.html)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@176 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-10 20:54:00 +00:00
Milan Broz
9eac56c614 Fix invalid device error message.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@175 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-10 20:41:15 +00:00
Milan Broz
4af7114832 Update sv.po.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@174 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-10 20:41:07 +00:00
Milan Broz
ed1586950a Convert hash name to lower case for compatibility reasons.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@173 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-10 20:40:59 +00:00
Milan Broz
311727a571 Add nonFIPS alg format test, clean up some warnings in apicheck.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@172 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-10 20:40:50 +00:00
Milan Broz
a97b56cc32 Properly initialise gcrypt in format call.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@171 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-10 20:40:41 +00:00
Milan Broz
0575ded2aa Update Swedish translation.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@170 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-07 17:31:25 +00:00
Milan Broz
f61fbc7520 New German translation.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@169 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-07 10:21:06 +00:00
Milan Broz
1f87cbc5bf Fix static build on some systems and detect too old devmapper library.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@166 36d66b0a-2a48-0410-832c-cd162a569da5
2010-01-02 14:16:57 +00:00
Milan Broz
107ce07914 Version 1.1.0-rc4.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@162 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-30 20:26:36 +00:00
Milan Broz
550c38dd78 Update Swedish traslation.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@161 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-30 20:26:28 +00:00
Milan Broz
909c77e856 Describe configurable defaults in man page.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@160 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-30 20:26:20 +00:00
Milan Broz
ad224b479a Change in iterations counts:
* Fix key slot iteration count calculation (small -i value was the same as default).
  * The slot and key digest iteration minimun is now 1000.
  * The key digest iteration # is calculated from iteration time (approx 1/8 of that).

If something very strange happens, and the generated key is not completely random
(wrong RNG), attacker can skip the whole kesylot area processing and try to
brute force key according to limited set of keys.

The iteration time (default, inherited from slot iteration time, is cca 120ms)
can make this attack slower, if not impossible.

Note, that this is just theorethic problem, anyway it is better to be prepared
if possible:-)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@159 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-30 19:02:44 +00:00
Milan Broz
163abe3520 Fix build for non-standard gcrypt library location.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@158 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-30 16:39:13 +00:00
Milan Broz
1c91890aac Always close file dscriptor on error.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@157 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-30 16:39:03 +00:00
Milan Broz
8802e42ab3 Fix some minor text PO problems.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@156 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-14 14:05:16 +00:00
Milan Broz
42f8e5bdce Fix some strings to use gettext.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@155 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-11 11:56:32 +00:00
Milan Broz
dc4d945e88 Fix error handling during reading passhrase.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@154 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-11 11:56:25 +00:00
Milan Broz
403559261a Fix test to handle new default key size.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@153 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-11 11:56:17 +00:00
Milan Broz
b408947a36 Fix fr.po header copyright and info.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@152 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-01 15:40:04 +00:00
Milan Broz
4d6dd0df96 Move default cipher paramaters to config.h and allow change through
configuration script.

Change default LUKS keysize to 256.

Change default PLAIN mode to cbc-essiv:sha256.

Note that you have to specify cipher and mode in plain type,
otherwise there is backward incompatibility.

If you really need the same compatible paramaters, you can compile
cryptsetup using old defaults, e.g:

./configure --with-plain-mode=cbc-plain --with-luks1-keybits=128

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@151 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-01 14:31:08 +00:00
Milan Broz
c6aa3c5d21 Add initial Indonesian translation.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@150 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-30 11:03:47 +00:00
Milan Broz
ad34580916 Add initial French translation by Solveig.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@149 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-28 14:55:02 +00:00
Milan Broz
1c58538b6d Fix typos (Thanks to Solveig).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@148 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-28 14:43:07 +00:00
Milan Broz
74e68760b7 Version 1.1.0-rc3.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@147 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-16 22:41:42 +00:00
Milan Broz
7dcd983360 Add nls.h to Makefile.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@146 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-16 20:15:44 +00:00
Milan Broz
df389199d0 Use proper NLS macros and detection (so the message translation works again).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@145 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-16 20:10:20 +00:00
Milan Broz
6c900eea72 Add obsolete message for non-exclusive switch.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@144 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-16 19:05:40 +00:00
Milan Broz
1b85f4c38b Update list of translated files.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@143 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-16 18:27:19 +00:00
Milan Broz
458cadf4ee Simplify build system, use autopoint and clean gettext processing.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@142 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-16 18:20:11 +00:00
Milan Broz
c3064c9442 Add temporary debug code to allow better debugging of races
with various udev-event tools which wrongly scan and open
internal temporary cryptsetup devices.

If cryptsetup run in debug mode (--debug) and remove of device
fails, code scan /proc directory and tries to find process name
which locked that device.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@141 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-15 19:26:36 +00:00
Milan Broz
16faeae057 Check in configure if selinux libraries are required in static version.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@140 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-15 09:27:32 +00:00
Milan Broz
e618f38929 Fix status device call to fail if running as non-root.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@139 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-14 21:33:57 +00:00
Milan Broz
ecf73237e2 Add warning about keyboard setting and add copyright into man page.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@138 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-14 21:33:44 +00:00
Milan Broz
4a5bfd7509 Always print warning when device is not LUKS in crypt_load().
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@137 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-14 21:33:30 +00:00
Milan Broz
e698843420 Add CRYPT_ prefix to enum defined in libcryptsetup.h.
(Avoid collision with other defines.)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@136 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-14 21:33:16 +00:00
Milan Broz
70606301ef Fix uninteded change in keysize.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@135 36d66b0a-2a48-0410-832c-cd162a569da5
2009-10-23 16:24:50 +00:00
Milan Broz
873017d0fa Allow initialisation without specifying device.
This is used e.g. when caller need only generate volume key in plain mode.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@134 36d66b0a-2a48-0410-832c-cd162a569da5
2009-10-23 10:43:11 +00:00
Milan Broz
6a14ba8eb5 Allow manipulate with device with only header on it (no data).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@133 36d66b0a-2a48-0410-832c-cd162a569da5
2009-10-23 10:43:03 +00:00
Milan Broz
2bda053677 Rename internal locking helpers (avoids conflict when statically linking.)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@132 36d66b0a-2a48-0410-832c-cd162a569da5
2009-10-23 10:42:56 +00:00
Milan Broz
56eb6b0253 Fix hyphen escape (Thanks to Jonas Meurer)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@131 36d66b0a-2a48-0410-832c-cd162a569da5
2009-10-01 19:03:53 +00:00
Milan Broz
047ed83303 Yet another libcryptsetup.sym fix (fix make distcheck).
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@130 36d66b0a-2a48-0410-832c-cd162a569da5
2009-10-01 15:21:48 +00:00
Milan Broz
2620be03f0 Version 1.1.0-rc2.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@129 36d66b0a-2a48-0410-832c-cd162a569da5
2009-10-01 15:05:07 +00:00
Milan Broz
8dcdf1349e Fix typo.
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@128 36d66b0a-2a48-0410-832c-cd162a569da5
2009-10-01 14:36:59 +00:00
Milan Broz
194842375d Add some password and used algorithms notes to man page. (Thanks to Jonas Meurer)
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@127 36d66b0a-2a48-0410-832c-cd162a569da5
2009-10-01 14:31:44 +00:00