platform/upstream/cryptsetup.git
14 years agoAvoid class C++ keyword in library header.
Milan Broz [Mon, 12 Apr 2010 11:53:47 +0000 (11:53 +0000)]
Avoid class C++ keyword in library header.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@197 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoFix pkgconfig to use proper package version (Issue 60, thanks to Jan Engelhardt).
Milan Broz [Mon, 12 Apr 2010 11:53:36 +0000 (11:53 +0000)]
Fix pkgconfig to use proper package version (Issue 60, thanks to Jan Engelhardt).

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@196 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoSupport topology information for data alignment (LUKS).
Milan Broz [Fri, 9 Apr 2010 15:35:19 +0000 (15:35 +0000)]
Support topology information for data alignment (LUKS).

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@195 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoPrefer some device paths in status display. (Issue 48)
Milan Broz [Tue, 6 Apr 2010 15:06:36 +0000 (15:06 +0000)]
Prefer some device paths in status display. (Issue 48)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@194 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoRemove misleading selinux test in configure.
Milan Broz [Tue, 6 Apr 2010 14:05:59 +0000 (14:05 +0000)]
Remove misleading selinux test in configure.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@193 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoAdd Italian and Vietnamese translation.
Milan Broz [Tue, 6 Apr 2010 12:54:07 +0000 (12:54 +0000)]
Add Italian and Vietnamese translation.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@192 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoUpdate id.po, add new nl.po file.
Milan Broz [Thu, 25 Feb 2010 16:47:13 +0000 (16:47 +0000)]
Update id.po, add new nl.po file.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@191 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoProperly initialise crypto backend in header backup/restore commands. (fixes issue...
Milan Broz [Thu, 25 Feb 2010 16:00:12 +0000 (16:00 +0000)]
Properly initialise crypto backend in header backup/restore commands. (fixes issue #49)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@190 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoDo not verify unlocking passphrase in luksAddKey command. (fixes issue #50)
Milan Broz [Thu, 25 Feb 2010 15:41:22 +0000 (15:41 +0000)]
Do not verify unlocking passphrase in luksAddKey command. (fixes issue #50)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@189 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoVersion 1.1.0.
Milan Broz [Sun, 17 Jan 2010 10:28:56 +0000 (10:28 +0000)]
Version 1.1.0.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@181 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoIf gcrypt compiled with capabilities, document workaround for cryptsetup (see lib...
Milan Broz [Sun, 17 Jan 2010 10:20:15 +0000 (10:20 +0000)]
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

14 years agoRemove nonfuctional default values from help (and reformat table).
Milan Broz [Fri, 15 Jan 2010 14:27:32 +0000 (14:27 +0000)]
Remove nonfuctional default values from help (and reformat table).

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@179 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoFix missing includes on recent systems.
Milan Broz [Fri, 15 Jan 2010 11:11:37 +0000 (11:11 +0000)]
Fix missing includes on recent systems.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@178 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoFix hash lowercase conversion for malformed string.
Milan Broz [Fri, 15 Jan 2010 10:42:06 +0000 (10:42 +0000)]
Fix hash lowercase conversion for malformed string.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@177 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoCheck for required minumum gcrypt version.
Milan Broz [Sun, 10 Jan 2010 20:54:00 +0000 (20:54 +0000)]
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

14 years agoFix invalid device error message.
Milan Broz [Sun, 10 Jan 2010 20:41:15 +0000 (20:41 +0000)]
Fix invalid device error message.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@175 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoUpdate sv.po.
Milan Broz [Sun, 10 Jan 2010 20:41:07 +0000 (20:41 +0000)]
Update sv.po.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@174 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoConvert hash name to lower case for compatibility reasons.
Milan Broz [Sun, 10 Jan 2010 20:40:59 +0000 (20:40 +0000)]
Convert hash name to lower case for compatibility reasons.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@173 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoAdd nonFIPS alg format test, clean up some warnings in apicheck.
Milan Broz [Sun, 10 Jan 2010 20:40:50 +0000 (20:40 +0000)]
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

14 years agoProperly initialise gcrypt in format call.
Milan Broz [Sun, 10 Jan 2010 20:40:41 +0000 (20:40 +0000)]
Properly initialise gcrypt in format call.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@171 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoUpdate Swedish translation.
Milan Broz [Thu, 7 Jan 2010 17:31:25 +0000 (17:31 +0000)]
Update Swedish translation.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@170 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoNew German translation.
Milan Broz [Thu, 7 Jan 2010 10:21:06 +0000 (10:21 +0000)]
New German translation.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@169 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoFix static build on some systems and detect too old devmapper library.
Milan Broz [Sat, 2 Jan 2010 14:16:57 +0000 (14:16 +0000)]
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

14 years agoVersion 1.1.0-rc4.
Milan Broz [Wed, 30 Dec 2009 20:26:36 +0000 (20:26 +0000)]
Version 1.1.0-rc4.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@162 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoUpdate Swedish traslation.
Milan Broz [Wed, 30 Dec 2009 20:26:28 +0000 (20:26 +0000)]
Update Swedish traslation.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@161 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoDescribe configurable defaults in man page.
Milan Broz [Wed, 30 Dec 2009 20:26:20 +0000 (20:26 +0000)]
Describe configurable defaults in man page.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@160 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoChange in iterations counts:
Milan Broz [Wed, 30 Dec 2009 19:02:44 +0000 (19:02 +0000)]
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

14 years agoFix build for non-standard gcrypt library location.
Milan Broz [Wed, 30 Dec 2009 16:39:13 +0000 (16:39 +0000)]
Fix build for non-standard gcrypt library location.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@158 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoAlways close file dscriptor on error.
Milan Broz [Wed, 30 Dec 2009 16:39:03 +0000 (16:39 +0000)]
Always close file dscriptor on error.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@157 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoFix some minor text PO problems.
Milan Broz [Mon, 14 Dec 2009 14:05:16 +0000 (14:05 +0000)]
Fix some minor text PO problems.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@156 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoFix some strings to use gettext.
Milan Broz [Fri, 11 Dec 2009 11:56:32 +0000 (11:56 +0000)]
Fix some strings to use gettext.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@155 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoFix error handling during reading passhrase.
Milan Broz [Fri, 11 Dec 2009 11:56:25 +0000 (11:56 +0000)]
Fix error handling during reading passhrase.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@154 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoFix test to handle new default key size.
Milan Broz [Fri, 11 Dec 2009 11:56:17 +0000 (11:56 +0000)]
Fix test to handle new default key size.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@153 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoFix fr.po header copyright and info.
Milan Broz [Tue, 1 Dec 2009 15:40:04 +0000 (15:40 +0000)]
Fix fr.po header copyright and info.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@152 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoMove default cipher paramaters to config.h and allow change through
Milan Broz [Tue, 1 Dec 2009 14:31:08 +0000 (14:31 +0000)]
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

14 years agoAdd initial Indonesian translation.
Milan Broz [Mon, 30 Nov 2009 11:03:47 +0000 (11:03 +0000)]
Add initial Indonesian translation.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@150 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoAdd initial French translation by Solveig.
Milan Broz [Sat, 28 Nov 2009 14:55:02 +0000 (14:55 +0000)]
Add initial French translation by Solveig.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@149 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoFix typos (Thanks to Solveig).
Milan Broz [Sat, 28 Nov 2009 14:43:07 +0000 (14:43 +0000)]
Fix typos (Thanks to Solveig).

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@148 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoVersion 1.1.0-rc3.
Milan Broz [Mon, 16 Nov 2009 22:41:42 +0000 (22:41 +0000)]
Version 1.1.0-rc3.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@147 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoAdd nls.h to Makefile.
Milan Broz [Mon, 16 Nov 2009 20:15:44 +0000 (20:15 +0000)]
Add nls.h to Makefile.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@146 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoUse proper NLS macros and detection (so the message translation works again).
Milan Broz [Mon, 16 Nov 2009 20:10:20 +0000 (20:10 +0000)]
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

14 years agoAdd obsolete message for non-exclusive switch.
Milan Broz [Mon, 16 Nov 2009 19:05:40 +0000 (19:05 +0000)]
Add obsolete message for non-exclusive switch.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@144 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoUpdate list of translated files.
Milan Broz [Mon, 16 Nov 2009 18:27:19 +0000 (18:27 +0000)]
Update list of translated files.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@143 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoSimplify build system, use autopoint and clean gettext processing.
Milan Broz [Mon, 16 Nov 2009 18:20:11 +0000 (18:20 +0000)]
Simplify build system, use autopoint and clean gettext processing.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@142 36d66b0a-2a48-0410-832c-cd162a569da5

14 years agoAdd temporary debug code to allow better debugging of races
Milan Broz [Sun, 15 Nov 2009 19:26:36 +0000 (19:26 +0000)]
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

14 years agoCheck in configure if selinux libraries are required in static version.
Milan Broz [Sun, 15 Nov 2009 09:27:32 +0000 (09:27 +0000)]
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

14 years agoFix status device call to fail if running as non-root.
Milan Broz [Sat, 14 Nov 2009 21:33:57 +0000 (21:33 +0000)]
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

14 years agoAdd warning about keyboard setting and add copyright into man page.
Milan Broz [Sat, 14 Nov 2009 21:33:44 +0000 (21:33 +0000)]
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

14 years agoAlways print warning when device is not LUKS in crypt_load().
Milan Broz [Sat, 14 Nov 2009 21:33:30 +0000 (21:33 +0000)]
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

14 years agoAdd CRYPT_ prefix to enum defined in libcryptsetup.h.
Milan Broz [Sat, 14 Nov 2009 21:33:16 +0000 (21:33 +0000)]
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

15 years agoFix uninteded change in keysize.
Milan Broz [Fri, 23 Oct 2009 16:24:50 +0000 (16:24 +0000)]
Fix uninteded change in keysize.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@135 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoAllow initialisation without specifying device.
Milan Broz [Fri, 23 Oct 2009 10:43:11 +0000 (10:43 +0000)]
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

15 years agoAllow manipulate with device with only header on it (no data).
Milan Broz [Fri, 23 Oct 2009 10:43:03 +0000 (10:43 +0000)]
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

15 years agoRename internal locking helpers (avoids conflict when statically linking.)
Milan Broz [Fri, 23 Oct 2009 10:42:56 +0000 (10:42 +0000)]
Rename internal locking helpers (avoids conflict when statically linking.)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@132 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoFix hyphen escape (Thanks to Jonas Meurer)
Milan Broz [Thu, 1 Oct 2009 19:03:53 +0000 (19:03 +0000)]
Fix hyphen escape (Thanks to Jonas Meurer)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@131 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoYet another libcryptsetup.sym fix (fix make distcheck).
Milan Broz [Thu, 1 Oct 2009 15:21:48 +0000 (15:21 +0000)]
Yet another libcryptsetup.sym fix (fix make distcheck).

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@130 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoVersion 1.1.0-rc2.
Milan Broz [Thu, 1 Oct 2009 15:05:07 +0000 (15:05 +0000)]
Version 1.1.0-rc2.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@129 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoFix typo.
Milan Broz [Thu, 1 Oct 2009 14:36:59 +0000 (14:36 +0000)]
Fix typo.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@128 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoAdd some password and used algorithms notes to man page. (Thanks to Jonas Meurer)
Milan Broz [Thu, 1 Oct 2009 14:31:44 +0000 (14:31 +0000)]
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

15 years agoMove duplicated failed message to verbose level, add some debug messages, fix resize...
Milan Broz [Thu, 1 Oct 2009 14:11:55 +0000 (14:11 +0000)]
Move duplicated failed message to verbose level, add some debug messages, fix resize call.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@126 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoMove dm backend initialisation to library calls.
Milan Broz [Thu, 1 Oct 2009 10:14:32 +0000 (10:14 +0000)]
Move dm backend initialisation to library calls.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@125 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoProperly apply versioned symbols in library and fix problems uncovered
Milan Broz [Wed, 30 Sep 2009 15:07:41 +0000 (15:07 +0000)]
Properly apply versioned symbols in library and fix problems uncovered
by doing that:-)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@124 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoExport header backup and restore functions.
Milan Broz [Tue, 29 Sep 2009 12:31:49 +0000 (12:31 +0000)]
Export header backup and restore functions.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@120 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoVersion 1.1.0-rc1
Milan Broz [Tue, 29 Sep 2009 12:28:54 +0000 (12:28 +0000)]
Version 1.1.0-rc1

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@119 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoFix typo in backup file option. (Thanks to Jonas Meurer)
Milan Broz [Tue, 29 Sep 2009 11:08:29 +0000 (11:08 +0000)]
Fix typo in backup file option. (Thanks to Jonas Meurer)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@118 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago... and previous reintroduce it as debug message.
Milan Broz [Mon, 28 Sep 2009 18:50:05 +0000 (18:50 +0000)]
... and previous reintroduce it as debug message.

(The problem is when repeated passphrase input is tried on pipe,
it should not show "error reading passphrase", because it fails
for the second reading attepmt anyway but should retain
error message saying "no key with this passpharase...")

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@117 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoRemove error message in previous commit.
Milan Broz [Mon, 28 Sep 2009 18:42:26 +0000 (18:42 +0000)]
Remove error message in previous commit.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@116 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoFail if piped input is broken.
Milan Broz [Mon, 28 Sep 2009 18:29:58 +0000 (18:29 +0000)]
Fail if piped input is broken.

(Thanks to Ludwig Nussel)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@115 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoAdd luksHeaderBackup and luksHeaderRestore commands and API cals.
Milan Broz [Mon, 28 Sep 2009 17:45:38 +0000 (17:45 +0000)]
Add luksHeaderBackup and luksHeaderRestore commands and API cals.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@114 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoReplace locked device with error target after 1 sec of waiting.
Milan Broz [Sun, 20 Sep 2009 18:02:41 +0000 (18:02 +0000)]
Replace locked device with error target after 1 sec of waiting.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@113 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoFix manpage to not require --size which expands to device size by default. (Thanks...
Milan Broz [Tue, 15 Sep 2009 15:10:34 +0000 (15:10 +0000)]
Fix manpage to not require --size which expands to device size by default. (Thanks to Oren Held)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@112 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoInitialize crypto library before LUKS header load.
Milan Broz [Tue, 15 Sep 2009 15:10:23 +0000 (15:10 +0000)]
Initialize crypto library before LUKS header load.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@111 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoFix typo in help text.
Milan Broz [Fri, 11 Sep 2009 10:17:54 +0000 (10:17 +0000)]
Fix typo in help text.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@110 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agopatch 1.patch
Milan Broz [Thu, 10 Sep 2009 12:41:18 +0000 (12:41 +0000)]
patch 1.patch

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@109 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoUse selinux libs only when needed (fixes previous commit).
Milan Broz [Tue, 8 Sep 2009 13:08:36 +0000 (13:08 +0000)]
Use selinux libs only when needed (fixes previous commit).

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@108 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoAdd dirty hack to properly compile static binary with selinux and libgcrypt.
Milan Broz [Tue, 8 Sep 2009 12:53:00 +0000 (12:53 +0000)]
Add dirty hack to properly compile static binary with selinux and libgcrypt.

(unfortunately libgcrypt-config --libs have no --static switch...)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@107 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoTry to read first sector from device to properly check that device is ready.
Milan Broz [Tue, 8 Sep 2009 10:29:50 +0000 (10:29 +0000)]
Try to read first sector from device to properly check that device is ready.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@106 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoUse dm-uuid for all crypt devices, contains device type and name now.
Milan Broz [Tue, 8 Sep 2009 06:41:44 +0000 (06:41 +0000)]
Use dm-uuid for all crypt devices, contains device type and name now.

DM_UUID now contains prefix (CRYPT-), device type (LUKS1, PLAIN, TEMP),
UUID (if provided - LUKS) and device name.

Because e.g. snapshot of full LUKS device during activation must have different
name, DM-UUID is different too and we do not need --disable-uuid option.

DM-UUID is persistent during activation time.

* Revert (and solve different way): Replace not safe option --non-exclusive with --disable-uuid.

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@105 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago* Add luksSuspend (freeze device and wipe key) and luksResume (with provided passphrase).
Milan Broz [Wed, 2 Sep 2009 12:47:21 +0000 (12:47 +0000)]
* Add luksSuspend (freeze device and wipe key) and luksResume (with provided passphrase).

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@104 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoDisable --non-exclusive test.
Milan Broz [Mon, 31 Aug 2009 17:15:07 +0000 (17:15 +0000)]
Disable --non-exclusive test.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@103 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoAdd LUKS open and format test using new api.
Milan Broz [Mon, 31 Aug 2009 17:03:22 +0000 (17:03 +0000)]
Add LUKS open and format test using new api.

Fix some error messages.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@102 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago* Replace not safe option --non-exclusive with --disable-uuid.
Milan Broz [Mon, 31 Aug 2009 17:03:10 +0000 (17:03 +0000)]
* Replace not safe option --non-exclusive with --disable-uuid.

(just formal change, code already contains the change)

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@101 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoAdd plain crypt device test using new API.
Milan Broz [Mon, 31 Aug 2009 10:36:36 +0000 (10:36 +0000)]
Add plain crypt device test using new API.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@100 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago* Add --master-key-file option for luksFormat and luksAddKey.
Milan Broz [Sun, 30 Aug 2009 18:10:23 +0000 (18:10 +0000)]
* Add --master-key-file option for luksFormat and luksAddKey.

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@99 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago* Remove old API code helper functions.
Milan Broz [Sun, 30 Aug 2009 18:10:11 +0000 (18:10 +0000)]
* Remove old API code helper functions.

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@98 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago* Implement old API calls using new functions.
Milan Broz [Sun, 30 Aug 2009 18:10:02 +0000 (18:10 +0000)]
* Implement old API calls using new functions.

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@97 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago* Add new libcryptsetup API (documented in libcryptsetup.h).
Milan Broz [Sun, 30 Aug 2009 18:09:53 +0000 (18:09 +0000)]
* Add new libcryptsetup API (documented in libcryptsetup.h).

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@96 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago* Replace global options struct with separate parameters in helper functions.
Milan Broz [Sun, 30 Aug 2009 18:09:43 +0000 (18:09 +0000)]
* Replace global options struct with separate parameters in helper functions.

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@95 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago* Run performance check for PBKDF2 from LUKS code, do not mix hash algoritms results.
Milan Broz [Sun, 30 Aug 2009 18:09:34 +0000 (18:09 +0000)]
* Run performance check for PBKDF2 from LUKS code, do not mix hash algoritms results.
* Add ability to provide pre-generated master key and UUID in LUKS header format.
* Add LUKS function to verify master key digest.
* Move key slot manuipulation function into LUKS specific code.

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@94 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago* Move device utils code and provide context parameter (for log).
Milan Broz [Sun, 30 Aug 2009 18:09:21 +0000 (18:09 +0000)]
* Move device utils code and provide context parameter (for log).
* Keyfile now must be provided by path, only stdin file descriptor is used (api only).
* Do not call isatty() on closed keyfile descriptor.

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@93 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago* Add log macros and make logging modre consitent.
Milan Broz [Sun, 30 Aug 2009 18:07:17 +0000 (18:07 +0000)]
* Add log macros and make logging modre consitent.
* Move command successful messages to verbose level.
* Introduce --debug parameter.

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@92 36d66b0a-2a48-0410-832c-cd162a569da5

15 years ago* Move memory locking and dm initialization to command layer.
Milan Broz [Sun, 30 Aug 2009 18:07:00 +0000 (18:07 +0000)]
* Move memory locking and dm initialization to command layer.
* Increase priority of process if memory is locked.

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@91 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoRequire device device-mapper to build and do not use backend wrapper for dm calls.
Milan Broz [Sun, 30 Aug 2009 17:56:33 +0000 (17:56 +0000)]
Require device device-mapper to build and do not use backend wrapper for dm calls.

Signed-off-by: Milan Broz <mbroz@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@90 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoTest commit.
Milan Broz [Sun, 30 Aug 2009 17:49:37 +0000 (17:49 +0000)]
Test commit.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@89 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoFix include path.
Milan Broz [Fri, 28 Aug 2009 15:54:03 +0000 (15:54 +0000)]
Fix include path.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@88 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoAdd separate tests directory, move LUKS tests, Add old library API tests.
Milan Broz [Fri, 28 Aug 2009 15:22:37 +0000 (15:22 +0000)]
Add separate tests directory, move LUKS tests, Add old library API tests.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@87 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoAllow restrict keys size in LuksOpen (thanks to Stefan Assmann)
Milan Broz [Mon, 17 Aug 2009 11:04:36 +0000 (11:04 +0000)]
Allow restrict keys size in LuksOpen (thanks to Stefan Assmann)

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@86 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoAllow using passphrase provided in options struct for LuksOpen (thanks to Waldemar...
Milan Broz [Mon, 17 Aug 2009 11:03:29 +0000 (11:03 +0000)]
Allow using passphrase provided in options struct for LuksOpen (thanks to Waldemar Brodkorb).

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@85 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoFix PBKDF2 speed calculation for large passhrases.
Milan Broz [Mon, 17 Aug 2009 06:28:22 +0000 (06:28 +0000)]
Fix PBKDF2 speed calculation for large passhrases.

- Do not reset key each iteration.
- Fix error path.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@84 36d66b0a-2a48-0410-832c-cd162a569da5

15 years agoEnable LUKS hash setting and document it.
Milan Broz [Thu, 30 Jul 2009 15:02:53 +0000 (15:02 +0000)]
Enable LUKS hash setting and document it.

git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@83 36d66b0a-2a48-0410-832c-cd162a569da5