platform/upstream/cryptsetup.git
13 years agoFix po files include and tests.
Milan Broz [Tue, 26 Oct 2010 14:35:16 +0000 (14:35 +0000)]
Fix po files include and tests.

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

13 years agoRemove dead parse code.
Milan Broz [Tue, 26 Oct 2010 14:35:06 +0000 (14:35 +0000)]
Remove dead parse code.

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

13 years agoAdd utils_crypt file and test for supported modes presentation.
Milan Broz [Tue, 26 Oct 2010 14:34:47 +0000 (14:34 +0000)]
Add utils_crypt file and test for supported modes presentation.

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

13 years agoSimplify crypto backend init.
Milan Broz [Tue, 26 Oct 2010 14:34:35 +0000 (14:34 +0000)]
Simplify crypto backend init.

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

13 years agoGeneralise volume key struct.
Milan Broz [Tue, 26 Oct 2010 14:34:17 +0000 (14:34 +0000)]
Generalise volume key struct.

Do not generate unused volume key in PLAIN mode.

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

13 years agoUpdate to autoconf 2.67.
Milan Broz [Tue, 26 Oct 2010 14:34:07 +0000 (14:34 +0000)]
Update to autoconf 2.67.

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

13 years ago* Remove --disable-shared-library switch and handle static library build
Milan Broz [Mon, 18 Oct 2010 14:47:35 +0000 (14:47 +0000)]
* Remove --disable-shared-library switch and handle static library build
  by common libtool logic (using --enable-static).
* Add --enable-static-cryptsetup option to build cryptsetup.static binary
  together with shared build.

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

13 years agoAdd myself to authors file :)
Milan Broz [Mon, 18 Oct 2010 14:47:22 +0000 (14:47 +0000)]
Add myself to authors file :)

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

13 years agoAdd crypt_get_device_name() to API (get underlying device name).
Milan Broz [Mon, 18 Oct 2010 14:47:06 +0000 (14:47 +0000)]
Add crypt_get_device_name() to API (get underlying device name).

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

13 years ago* Change detection for static libraries.
Milan Broz [Sun, 17 Oct 2010 14:32:56 +0000 (14:32 +0000)]
* Change detection for static libraries.
* Fix pkg-config use in automake scripts.
* Build statically linked binary (cryptsetup.static) together with shared build if --enable-static is specified.

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

13 years agoupdated
Arno Wagner [Mon, 11 Oct 2010 19:01:34 +0000 (19:01 +0000)]
updated

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

13 years agoadded updated version
Arno Wagner [Fri, 3 Sep 2010 07:24:59 +0000 (07:24 +0000)]
added updated version

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

13 years agoCheck if requested hash is supported before writing LUKS header.
Milan Broz [Fri, 13 Aug 2010 15:03:07 +0000 (15:03 +0000)]
Check if requested hash is supported before writing LUKS header.

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

13 years agoDo not query non-existent device twice:
Milan Broz [Fri, 13 Aug 2010 14:05:34 +0000 (14:05 +0000)]
Do not query non-existent device twice:
  # cryptsetup status /dev/nonexistent
  Device /dev/nonexistent not found
  Device /dev/nonexistent not found

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

13 years agoPrint error if luksHeaderBackup called for non-LUKS device.
Milan Broz [Fri, 13 Aug 2010 12:40:19 +0000 (12:40 +0000)]
Print error if luksHeaderBackup called for non-LUKS device.

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

13 years agoUpdate man page regarding 1MiB alignment.
Milan Broz [Tue, 10 Aug 2010 10:12:38 +0000 (10:12 +0000)]
Update man page regarding 1MiB alignment.

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

13 years agoUse default data alignment to 1MiB.
Milan Broz [Mon, 9 Aug 2010 16:34:42 +0000 (16:34 +0000)]
Use default data alignment to 1MiB.

If there is topology info, use default if topology is multiple of default,
otherwise use topology values.

See https://bugzilla.redhat.com/show_bug.cgi?id=621684 and issue 55.

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

13 years agoRewrite filediffer to C and make it work properly.
Milan Broz [Thu, 5 Aug 2010 16:41:28 +0000 (16:41 +0000)]
Rewrite filediffer to C and make it work properly.

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

13 years agoWipe iteration count and salt for wiped keyslot in LUKS header.
Milan Broz [Thu, 5 Aug 2010 16:41:21 +0000 (16:41 +0000)]
Wipe iteration count and salt for wiped keyslot in LUKS header.

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

13 years agoUpdate fr.po.
Milan Broz [Wed, 4 Aug 2010 11:10:57 +0000 (11:10 +0000)]
Update fr.po.

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

13 years agoMention units (512b sectors) for -o option in man page.
Milan Broz [Tue, 3 Aug 2010 14:32:52 +0000 (14:32 +0000)]
Mention units (512b sectors) for -o option in man page.

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

13 years agoAdd FAQ (Frequently Asked Questions) file to distribution.
Milan Broz [Wed, 28 Jul 2010 03:35:50 +0000 (03:35 +0000)]
Add FAQ (Frequently Asked Questions) file to distribution.

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

13 years agoInitial add of FAQ
Arno Wagner [Tue, 27 Jul 2010 22:16:39 +0000 (22:16 +0000)]
Initial add of FAQ

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

13 years agoVersion 1.1.3.
Milan Broz [Sat, 3 Jul 2010 13:48:45 +0000 (13:48 +0000)]
Version 1.1.3.

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

13 years agoAdd Polish translation file.
Milan Broz [Sat, 3 Jul 2010 13:35:56 +0000 (13:35 +0000)]
Add Polish translation file.

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

13 years agoFix previous commit to properly check udev flag definition.
Milan Broz [Sat, 3 Jul 2010 13:18:05 +0000 (13:18 +0000)]
Fix previous commit to properly check udev flag definition.

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

13 years agoFix udev support for old libdevmapper with not compatible definition.
Milan Broz [Sat, 3 Jul 2010 13:11:32 +0000 (13:11 +0000)]
Fix udev support for old libdevmapper with not compatible definition.

Some released devmapper libraries have defined dm_task_set_cookie()
with not compatible parameters (ABI break), let's check for udev support
by using flags definition (udev is for cryptsetup not usable without this anyway).

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

13 years agoFix activate_by_* API calls to handle NULL device name as documented.
Milan Broz [Thu, 3 Jun 2010 15:18:14 +0000 (15:18 +0000)]
Fix activate_by_* API calls to handle NULL device name as documented.

And add some tests for this.

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

13 years agoFix device alignment ioctl calls parameters.
Milan Broz [Tue, 1 Jun 2010 14:39:10 +0000 (14:39 +0000)]
Fix device alignment ioctl calls parameters.

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

13 years agoVersion 1.1.2.
Milan Broz [Sun, 30 May 2010 17:40:32 +0000 (17:40 +0000)]
Version 1.1.2.

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

13 years agoPrint empty line in status if underlying device disappeared.
Milan Broz [Sun, 30 May 2010 17:38:11 +0000 (17:38 +0000)]
Print empty line in status if underlying device disappeared.

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

13 years agoFix description of --key-file and add --verbose and --debug options to man page.
Milan Broz [Sun, 30 May 2010 16:56:02 +0000 (16:56 +0000)]
Fix description of --key-file and add --verbose and --debug options to man page.

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

13 years agoFix (deprecated) reload device command to accept new device argument.
Milan Broz [Sun, 30 May 2010 12:23:38 +0000 (12:23 +0000)]
Fix (deprecated) reload device command to accept new device argument.

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

13 years agoRemove device even if underlying device disappeared.
Milan Broz [Sun, 30 May 2010 12:20:56 +0000 (12:20 +0000)]
Remove device even if underlying device disappeared.

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

14 years agoUpdate nl.po.
Milan Broz [Thu, 27 May 2010 18:46:05 +0000 (18:46 +0000)]
Update nl.po.

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

14 years agoAdd verbose log level and move unlocking keyslot messages there.
Milan Broz [Thu, 27 May 2010 18:44:14 +0000 (18:44 +0000)]
Add verbose log level and move unlocking keyslot messages there.

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

14 years agoFix luksFormat/luksOpen reading passphrase from stdin and "-" keyfile.
Milan Broz [Thu, 27 May 2010 18:44:00 +0000 (18:44 +0000)]
Fix luksFormat/luksOpen reading passphrase from stdin and "-" keyfile.

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

14 years agoTry to make get_key() paramater more obvious...
Milan Broz [Thu, 27 May 2010 18:43:47 +0000 (18:43 +0000)]
Try to make get_key() paramater more obvious...

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

14 years agoVersion 1.1.1.
Milan Broz [Sun, 23 May 2010 13:30:09 +0000 (13:30 +0000)]
Version 1.1.1.

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

14 years agoUpdate nl.po.
Milan Broz [Sun, 23 May 2010 13:09:46 +0000 (13:09 +0000)]
Update nl.po.

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

14 years agoFix luksClose if underlying device is another DM device
Milan Broz [Sun, 23 May 2010 13:09:33 +0000 (13:09 +0000)]
Fix luksClose if underlying device is another DM device
and commands fails with "Device 253:0 doesn't exist or access denied." error.

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

14 years agoVersion 1.1.1-rc2
Milan Broz [Mon, 3 May 2010 15:10:45 +0000 (15:10 +0000)]
Version 1.1.1-rc2

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

14 years agoFix automatic dm-crypt module loading.
Milan Broz [Mon, 3 May 2010 15:02:47 +0000 (15:02 +0000)]
Fix automatic dm-crypt module loading.

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

14 years agoEscape hyphens in manpage (Thanks to Jonas Meurer.)
Milan Broz [Mon, 3 May 2010 12:56:15 +0000 (12:56 +0000)]
Escape hyphens in manpage (Thanks to Jonas Meurer.)

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

14 years agoAdd newline to hints and allow translation of string.
Milan Broz [Mon, 3 May 2010 12:56:07 +0000 (12:56 +0000)]
Add newline to hints and allow translation of string.

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

14 years agoUpdate vi.po.
Milan Broz [Mon, 3 May 2010 10:24:02 +0000 (10:24 +0000)]
Update vi.po.

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

14 years agoSkip align test if kernel fails to load scsi_debug.
Milan Broz [Sat, 1 May 2010 16:04:04 +0000 (16:04 +0000)]
Skip align test if kernel fails to load scsi_debug.

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

14 years agoVersion 1.1.1-rc1
Milan Broz [Sat, 1 May 2010 15:40:39 +0000 (15:40 +0000)]
Version 1.1.1-rc1

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

14 years agoFix isLuks to initialise crypto backend (blkid instead is suggested anyway).
Milan Broz [Sat, 1 May 2010 14:01:43 +0000 (14:01 +0000)]
Fix isLuks to initialise crypto backend (blkid instead is suggested anyway).

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

14 years agoFix gcrypt detection & compatimage in api-test.
Milan Broz [Sat, 1 May 2010 09:59:12 +0000 (09:59 +0000)]
Fix gcrypt detection & compatimage in api-test.

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

14 years agoRename apitest -> api-test.
Milan Broz [Sat, 1 May 2010 09:59:04 +0000 (09:59 +0000)]
Rename apitest -> api-test.

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

14 years agoRename align test (Anyone mentioned autoconfigure?). Add some minor changes, run...
Milan Broz [Sat, 1 May 2010 09:58:55 +0000 (09:58 +0000)]
Rename align test (Anyone mentioned autoconfigure?). Add some minor changes, run it in make check.

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

14 years agoMove compat test to separate script and run it in make check.
Milan Broz [Sat, 1 May 2010 09:58:47 +0000 (09:58 +0000)]
Move compat test to separate script and run it in make check.

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

14 years agoFix luksOpen reading of passphrase on stdin (if "-" keyfile specified) (Issue 52)
Milan Broz [Fri, 30 Apr 2010 16:21:24 +0000 (16:21 +0000)]
Fix luksOpen reading of passphrase on stdin (if "-" keyfile specified) (Issue 52)

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

14 years agoAllow no hash specification in plain device constructor (issue 63).
Milan Broz [Fri, 30 Apr 2010 14:05:25 +0000 (14:05 +0000)]
Allow no hash specification in plain device constructor (issue 63).
Fix some warnings in apitest.

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

14 years agoUse pkg-conf --static if static build requested.
Milan Broz [Fri, 30 Apr 2010 12:38:38 +0000 (12:38 +0000)]
Use pkg-conf --static if static build requested.

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

14 years agoDetect old dm-crypt module and disable LUKS suspend/resume.
Milan Broz [Fri, 30 Apr 2010 12:03:41 +0000 (12:03 +0000)]
Detect old dm-crypt module and disable LUKS suspend/resume.
Fix apitest to work on older systems.

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

14 years agoFix includes for libdevmapper internals.
Milan Broz [Thu, 29 Apr 2010 22:26:14 +0000 (22:26 +0000)]
Fix includes for libdevmapper internals.

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

14 years agoTry to use pkdconfig for devmapper.
Milan Broz [Thu, 29 Apr 2010 21:49:51 +0000 (21:49 +0000)]
Try to use pkdconfig for devmapper.
Disable udev automatically if devmapper doesn't support it.

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

14 years agoDo not use kernel dm-ioctl header directly and remove warnings.
Milan Broz [Fri, 16 Apr 2010 15:48:09 +0000 (15:48 +0000)]
Do not use kernel dm-ioctl header directly and remove warnings.
Add alignment test to distributed files.
Fix write() return compiler warning.

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

14 years agoFix minor errors
Milan Broz [Fri, 16 Apr 2010 14:51:09 +0000 (14:51 +0000)]
Fix minor errors
- undefined variable
- properly closinf file descriptorif totpology not detected
- fix IV mode to test run on RHEL5

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

14 years agoFix align test.
Milan Broz [Fri, 16 Apr 2010 13:16:11 +0000 (13:16 +0000)]
Fix align test.

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

14 years agoFix udev support. Set flag to disable udev rules for temporary devices.
Milan Broz [Fri, 16 Apr 2010 11:11:37 +0000 (11:11 +0000)]
Fix udev support. Set flag to disable udev rules for temporary devices.

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

14 years agoDetect and use devmapper udev support if available (disable by --disable-udev).
Milan Broz [Thu, 15 Apr 2010 15:32:42 +0000 (15:32 +0000)]
Detect and use devmapper udev support if available (disable by --disable-udev).

If we have device-mapper, get ingo using dm_udev_get_sync_support(),
otherwise ignore udev completely.

You can disable udev support by adding --disable-udev to configure, default is enabled.
(There can be races if udev rules run some actions and cryptsetup doesn't wait it.)

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

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