platform/upstream/cryptsetup.git
12 years agotext version synced
Arno Wagner [Sat, 14 Jan 2012 23:01:29 +0000 (23:01 +0000)]
text version synced

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

12 years agoFix use of empty keyfile (Issue 120).
Milan Broz [Thu, 12 Jan 2012 22:13:23 +0000 (22:13 +0000)]
Fix use of empty keyfile (Issue 120).

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

12 years agoupdated ASCII version also
Arno Wagner [Sun, 8 Jan 2012 12:14:47 +0000 (12:14 +0000)]
updated ASCII version also

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

12 years agoremoved comment about RC4. Really no need to make stream ciphers
Arno Wagner [Mon, 19 Dec 2011 04:11:36 +0000 (04:11 +0000)]
removed comment about RC4. Really no need to make stream ciphers
work with dm-crypt/luks.

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

12 years agoupdated txt version to match web
Arno Wagner [Mon, 19 Dec 2011 04:08:50 +0000 (04:08 +0000)]
updated txt version to match web

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

12 years agoFix discards option name.
Milan Broz [Mon, 5 Dec 2011 18:43:47 +0000 (18:43 +0000)]
Fix discards option name.

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

12 years agoupdated plan text version
Arno Wagner [Fri, 2 Dec 2011 08:36:25 +0000 (08:36 +0000)]
updated plan text version

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

12 years agoFix error message for luksClose and detached LUKS header.
Milan Broz [Sun, 13 Nov 2011 22:12:51 +0000 (22:12 +0000)]
Fix error message for luksClose and detached LUKS header.
Allow --header for status command to get full info with detached header.

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

12 years agoFix typo.
Milan Broz [Wed, 9 Nov 2011 12:23:42 +0000 (12:23 +0000)]
Fix typo.

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

12 years agoAdd 1.4.1 Release Notes.
Milan Broz [Wed, 9 Nov 2011 12:22:25 +0000 (12:22 +0000)]
Add 1.4.1 Release Notes.

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

12 years agoVersion 1.4.1.
Milan Broz [Wed, 9 Nov 2011 11:58:55 +0000 (11:58 +0000)]
Version 1.4.1.

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

12 years agoFix cryptsetup status output if parameter is device path.
Milan Broz [Tue, 8 Nov 2011 21:29:44 +0000 (21:29 +0000)]
Fix cryptsetup status output if parameter is device path.

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

12 years agoAdd some constants to Python binding.
Milan Broz [Tue, 8 Nov 2011 09:15:10 +0000 (09:15 +0000)]
Add some constants to Python binding.

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

12 years agoSilent gcc strict aliasing warning.
Milan Broz [Mon, 7 Nov 2011 19:22:12 +0000 (19:22 +0000)]
Silent gcc strict aliasing warning.

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

12 years agoAdd COPYING.LGPL file.
Milan Broz [Mon, 7 Nov 2011 17:14:43 +0000 (17:14 +0000)]
Add COPYING.LGPL file.

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

12 years agoFix crypt_load usage in Python binding.
Milan Broz [Mon, 7 Nov 2011 13:05:16 +0000 (13:05 +0000)]
Fix crypt_load usage in Python binding.

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

12 years agoFix void / None Python bindings.
Milan Broz [Mon, 7 Nov 2011 12:22:33 +0000 (12:22 +0000)]
Fix void / None Python bindings.

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

12 years agoFix typo.
Milan Broz [Sun, 6 Nov 2011 22:49:25 +0000 (22:49 +0000)]
Fix typo.

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

12 years agoFix typo in iteration time api call.
Milan Broz [Sun, 6 Nov 2011 22:44:52 +0000 (22:44 +0000)]
Fix typo in iteration time api call.
(To not break API keep old set_iterarion_time alias...)

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

12 years agoAdd debugLevel and set iteration time python binding.
Milan Broz [Sun, 6 Nov 2011 22:44:44 +0000 (22:44 +0000)]
Add debugLevel and set iteration time python binding.

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

12 years agoAdd tests for former python API.
Milan Broz [Sun, 6 Nov 2011 22:44:37 +0000 (22:44 +0000)]
Add tests for former python API.

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

12 years agoMerge pycryptsetup (Python libcryptsetup bindings).
Milan Broz [Fri, 4 Nov 2011 23:38:47 +0000 (23:38 +0000)]
Merge pycryptsetup (Python libcryptsetup bindings).

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

12 years agoFix FSF address in license text according to
Milan Broz [Wed, 2 Nov 2011 22:35:21 +0000 (22:35 +0000)]
Fix FSF address in license text according to
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html

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

12 years agosynchronized to web version
Arno Wagner [Tue, 1 Nov 2011 04:48:34 +0000 (04:48 +0000)]
synchronized to web version

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

12 years agoUpdate it.po.
Milan Broz [Fri, 28 Oct 2011 08:35:01 +0000 (08:35 +0000)]
Update it.po.

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

12 years agoFix crypt_get_volume_key_size() for plain device.
Milan Broz [Thu, 27 Oct 2011 20:40:16 +0000 (20:40 +0000)]
Fix crypt_get_volume_key_size() for plain device.

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

12 years agoVersion 1.4.0.
Milan Broz [Wed, 26 Oct 2011 17:57:58 +0000 (17:57 +0000)]
Version 1.4.0.

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

12 years agoSilent some extra gcc warnings in tests.
Milan Broz [Wed, 26 Oct 2011 13:19:37 +0000 (13:19 +0000)]
Silent some extra gcc warnings in tests.

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

12 years agoFix isLuks message (should appear only in verbose mode).
Milan Broz [Tue, 25 Oct 2011 19:09:44 +0000 (19:09 +0000)]
Fix isLuks message (should appear only in verbose mode).

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

12 years agoUpdate nl.po.
Milan Broz [Tue, 25 Oct 2011 17:47:24 +0000 (17:47 +0000)]
Update nl.po.

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

12 years agoUpdate de.po.
Milan Broz [Mon, 17 Oct 2011 22:16:54 +0000 (22:16 +0000)]
Update de.po.

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

12 years agofix typo in german translation
Jonas Meurer [Mon, 17 Oct 2011 15:31:18 +0000 (15:31 +0000)]
fix typo in german translation

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

12 years agoUpdate on disk format to 1.2.1.
Milan Broz [Sun, 16 Oct 2011 13:32:13 +0000 (13:32 +0000)]
Update on disk format to 1.2.1.

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

12 years agoUpdate po files.
Milan Broz [Sat, 15 Oct 2011 20:28:04 +0000 (20:28 +0000)]
Update po files.

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

12 years agoRemoves obsolete valgrind suppression (Thanks to okozina)
Milan Broz [Sat, 15 Oct 2011 20:27:58 +0000 (20:27 +0000)]
Removes obsolete valgrind suppression (Thanks to okozina)

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

12 years agoUse system wide libcryptsetup in examples.
Milan Broz [Sat, 15 Oct 2011 20:27:51 +0000 (20:27 +0000)]
Use system wide libcryptsetup in examples.

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

12 years agoReencode Changelog to UTF8.
Milan Broz [Mon, 10 Oct 2011 20:01:51 +0000 (20:01 +0000)]
Reencode Changelog to UTF8.

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

12 years agoFix flag description comment.
Milan Broz [Mon, 10 Oct 2011 18:09:26 +0000 (18:09 +0000)]
Fix flag description comment.

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

12 years agoAdd 1.4.0 release notes
Milan Broz [Mon, 10 Oct 2011 17:38:55 +0000 (17:38 +0000)]
Add 1.4.0 release notes

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

12 years agoPrint warning if detached header path is unusable.
Milan Broz [Mon, 10 Oct 2011 17:38:40 +0000 (17:38 +0000)]
Print warning if detached header path is unusable.

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

12 years agoRevert get_last_error change for test-api (crypt_init should test for error message).
Milan Broz [Sun, 9 Oct 2011 22:10:43 +0000 (22:10 +0000)]
Revert get_last_error change for test-api (crypt_init should test for error message).

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

12 years agoPrepare 1.4.0-rc1 (some minor fixes still needed).
Milan Broz [Sun, 9 Oct 2011 21:20:01 +0000 (21:20 +0000)]
Prepare 1.4.0-rc1 (some minor fixes still needed).

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

12 years agoFix makefile for examples.
Milan Broz [Sun, 9 Oct 2011 21:11:42 +0000 (21:11 +0000)]
Fix makefile for examples.

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

12 years agoAdd license to example files (LGPL).
Milan Broz [Sun, 9 Oct 2011 21:05:20 +0000 (21:05 +0000)]
Add license to example files (LGPL).

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

12 years agoRewrite examples to more simple format.
Milan Broz [Sun, 9 Oct 2011 20:58:10 +0000 (20:58 +0000)]
Rewrite examples to more simple format.

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

12 years agoAdd simple makefile for examples.
Milan Broz [Sun, 9 Oct 2011 20:58:01 +0000 (20:58 +0000)]
Add simple makefile for examples.

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

12 years agoAdd LUKS on-disk format docs, update TODO.
Milan Broz [Sun, 9 Oct 2011 18:25:41 +0000 (18:25 +0000)]
Add LUKS on-disk format docs, update TODO.

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

12 years agoFix some complier warnings.
Milan Broz [Sun, 9 Oct 2011 15:47:31 +0000 (15:47 +0000)]
Fix some complier warnings.

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

12 years agoDetect static uuid library if static build is requested.
Milan Broz [Sun, 9 Oct 2011 15:22:57 +0000 (15:22 +0000)]
Detect static uuid library if static build is requested.

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

12 years agoMove setting of error text to crypt_log to catch all errors.
Milan Broz [Sun, 9 Oct 2011 13:46:24 +0000 (13:46 +0000)]
Move setting of error text to crypt_log to catch all errors.

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

12 years agoFix exit code if passphrases do not match in luksAddKey. (Issue 109)
Milan Broz [Sun, 9 Oct 2011 13:46:14 +0000 (13:46 +0000)]
Fix exit code if passphrases do not match in luksAddKey. (Issue 109)

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

12 years agoFix luksKillSLot exit code if slot is inactive or invalid. (Issue 108)
Milan Broz [Sun, 9 Oct 2011 13:46:03 +0000 (13:46 +0000)]
Fix luksKillSLot exit code if slot is inactive or invalid. (Issue 108)

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

12 years agoAdd crypt_last_error() API call (using crypt context).
Milan Broz [Sun, 9 Oct 2011 13:45:53 +0000 (13:45 +0000)]
Add crypt_last_error() API call (using crypt context).

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

12 years agoSimplify global error call.
Milan Broz [Sun, 9 Oct 2011 13:45:38 +0000 (13:45 +0000)]
Simplify global error call.

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

12 years agoFix some doxygen docs warnings and mistakes.
Milan Broz [Sat, 8 Oct 2011 20:27:54 +0000 (20:27 +0000)]
Fix some doxygen docs warnings and mistakes.

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

12 years agoFix doxyfile location.
Milan Broz [Sat, 8 Oct 2011 19:27:20 +0000 (19:27 +0000)]
Fix doxyfile location.

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

12 years agoAdd doxyfile.
Milan Broz [Sat, 8 Oct 2011 19:27:11 +0000 (19:27 +0000)]
Add doxyfile.

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

12 years agoAdd some examples. (thanks to okozina)
Milan Broz [Sat, 8 Oct 2011 19:27:03 +0000 (19:27 +0000)]
Add some examples. (thanks to okozina)

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

12 years agoAdd doxygen formatted documentation for libcryptsetup API (thanks to okozina).
Milan Broz [Sat, 8 Oct 2011 19:26:52 +0000 (19:26 +0000)]
Add doxygen formatted documentation for libcryptsetup API (thanks to okozina).

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

12 years agoRemove hints for old kernels.
Milan Broz [Sat, 8 Oct 2011 16:23:54 +0000 (16:23 +0000)]
Remove hints for old kernels.

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

12 years agoIf device is not rotational, do not use Gutmann wipe method.
Milan Broz [Sat, 8 Oct 2011 16:17:08 +0000 (16:17 +0000)]
If device is not rotational, do not use Gutmann wipe method.

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

12 years agoFix some compile warnings in optional crypto backends.
Milan Broz [Wed, 5 Oct 2011 09:46:37 +0000 (09:46 +0000)]
Fix some compile warnings in optional crypto backends.

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

12 years agoSupport Nettle 2.4 crypto backend (for ripemd160).
Milan Broz [Wed, 5 Oct 2011 08:33:33 +0000 (08:33 +0000)]
Support Nettle 2.4 crypto backend (for ripemd160).

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

12 years agoFix man page (thanks to Karl O. Pinc)
Milan Broz [Tue, 27 Sep 2011 16:51:23 +0000 (16:51 +0000)]
Fix man page (thanks to Karl O. Pinc)

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

12 years agoAdd keyslot option for luksOpen (thanks to okozina).
Milan Broz [Thu, 22 Sep 2011 20:26:37 +0000 (20:26 +0000)]
Add keyslot option for luksOpen (thanks to okozina).

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

12 years agoFix some memory leaks (thanks to okozina).
Milan Broz [Wed, 21 Sep 2011 22:42:18 +0000 (22:42 +0000)]
Fix some memory leaks (thanks to okozina).

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

12 years agoAdd some valgrind checks (thanks to okozina).
Milan Broz [Wed, 21 Sep 2011 22:42:03 +0000 (22:42 +0000)]
Add some valgrind checks (thanks to okozina).

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

12 years agoDo not allow format of already formatted context.
Milan Broz [Fri, 26 Aug 2011 19:46:29 +0000 (19:46 +0000)]
Do not allow format of already formatted context.
(Thanks to okozina@redhat.com)

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

12 years agoEnhance check of device size before writing LUKS header.
Milan Broz [Fri, 26 Aug 2011 19:46:17 +0000 (19:46 +0000)]
Enhance check of device size before writing LUKS header.
(Thanks to okozina@redhat.com)

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

12 years agoRemove internal loop definitions from header file.
Milan Broz [Fri, 26 Aug 2011 19:46:04 +0000 (19:46 +0000)]
Remove internal loop definitions from header file.

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

12 years agoUse /dev/loop-control if possible (kernel 3.1).
Milan Broz [Mon, 22 Aug 2011 22:33:24 +0000 (22:33 +0000)]
Use /dev/loop-control if possible (kernel 3.1).

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

12 years agoAdd fi.po.
Milan Broz [Mon, 22 Aug 2011 21:54:29 +0000 (21:54 +0000)]
Add fi.po.

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

12 years agoAdd some API test and rewrite some parts.
Milan Broz [Mon, 22 Aug 2011 21:54:11 +0000 (21:54 +0000)]
Add some API test and rewrite some parts.
(Thanks to okozina@redhat.com)

[not yet finished]

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

12 years agocrypt_check_data_device_size() needs to compare values in bytes
Milan Broz [Mon, 22 Aug 2011 21:53:59 +0000 (21:53 +0000)]
crypt_check_data_device_size() needs to compare values in bytes
(Thanks to okozina@redhat.com)

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

12 years agoFix two mem leaks in crypt_init_by_name_and_header().
Milan Broz [Mon, 22 Aug 2011 21:53:48 +0000 (21:53 +0000)]
Fix two mem leaks in crypt_init_by_name_and_header().
(Thanks to okozina@redhat.com)

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

12 years agoLUKS header and Type needs to be set in context before crypt_check_data_device_size...
Milan Broz [Mon, 22 Aug 2011 21:53:38 +0000 (21:53 +0000)]
LUKS header and Type needs to be set in context before crypt_check_data_device_size() is called.
(Thanks to okozina@redhat.com)

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

12 years agoAdd more paranoid checks for LUKS header and keyslot attributes.
Milan Broz [Mon, 22 Aug 2011 21:53:27 +0000 (21:53 +0000)]
Add more paranoid checks for LUKS header and keyslot attributes.
(Thanks to okozina@redhat.com)

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

12 years agoSilent gcc warnings with -Wconst-qual switch.
Milan Broz [Mon, 15 Aug 2011 16:32:52 +0000 (16:32 +0000)]
Silent gcc warnings with -Wconst-qual switch.

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

12 years agoCheck UUID of active device to match header when initializing context.
Milan Broz [Mon, 15 Aug 2011 16:32:44 +0000 (16:32 +0000)]
Check UUID of active device to match header when initializing context.

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

12 years agoDo not allow crypt_load() on already initialised context.
Milan Broz [Mon, 15 Aug 2011 16:32:36 +0000 (16:32 +0000)]
Do not allow crypt_load() on already initialised context.

Signed-off-by: Ondrej Kozina <okozina@redhat.com>
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@596 36d66b0a-2a48-0410-832c-cd162a569da5

12 years agoUpdate po files.
Milan Broz [Mon, 15 Aug 2011 16:32:24 +0000 (16:32 +0000)]
Update po files.

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

12 years agotypi fixed in ASCII version
Arno Wagner [Fri, 5 Aug 2011 08:33:09 +0000 (08:33 +0000)]
typi fixed in ASCII version

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

12 years agoAdd API tests for plain device.
Milan Broz [Tue, 2 Aug 2011 12:16:00 +0000 (12:16 +0000)]
Add API tests for plain device.

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

12 years agosynced ASCII version
Arno Wagner [Mon, 1 Aug 2011 23:50:58 +0000 (23:50 +0000)]
synced ASCII version

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

12 years agoImprove check for invalid offset and size values. (thx to okozina)
Milan Broz [Mon, 1 Aug 2011 12:27:34 +0000 (12:27 +0000)]
Improve check for invalid offset and size values. (thx to okozina)

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

12 years agoAdd loop control stub for testing new loop device interface.
Milan Broz [Mon, 1 Aug 2011 10:40:45 +0000 (10:40 +0000)]
Add loop control stub for testing new loop device interface.

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

12 years agosynced rhe text version
Arno Wagner [Sat, 30 Jul 2011 18:40:45 +0000 (18:40 +0000)]
synced rhe text version

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

12 years agoAdd check of decrypted image to test.
Milan Broz [Mon, 25 Jul 2011 21:49:14 +0000 (21:49 +0000)]
Add check of decrypted image to test.

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

12 years agoFix gcrypt final() function backend call.
Milan Broz [Mon, 25 Jul 2011 21:15:41 +0000 (21:15 +0000)]
Fix gcrypt final() function backend call.

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

12 years agoFix new tests to use sha1 (ripemd160 not supported in some backends).
Milan Broz [Mon, 25 Jul 2011 15:24:16 +0000 (15:24 +0000)]
Fix new tests to use sha1 (ripemd160 not supported in some backends).

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

12 years ago* Remove hash/hmac restart from crypto backend and make it part of hash/hmac final.
Milan Broz [Mon, 25 Jul 2011 15:24:04 +0000 (15:24 +0000)]
* Remove hash/hmac restart from crypto backend and make it part of hash/hmac final.

Some backend implementation did reset context by default, so this
should create backend api consistent.

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

12 years agoAdd experimental LUKS recovery script (recreate header from active mapping).
Milan Broz [Mon, 25 Jul 2011 10:42:35 +0000 (10:42 +0000)]
Add experimental LUKS recovery script (recreate header from active mapping).

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

12 years ago* Allow different data offset setting for detached header.
Milan Broz [Wed, 20 Jul 2011 17:39:38 +0000 (17:39 +0000)]
* Allow different data offset setting for detached header.

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

12 years ago* Add --header option for detached metadata (on-disk LUKS header) device.
Milan Broz [Wed, 20 Jul 2011 17:39:26 +0000 (17:39 +0000)]
* Add --header option for detached metadata (on-disk LUKS header) device.
* Add crypt_init_by_name_and_header() and crypt_set_data_device() to API.

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

12 years ago* Revert default initialisation of volume key in crypt_init_by_name().
Milan Broz [Tue, 19 Jul 2011 13:55:34 +0000 (13:55 +0000)]
* Revert default initialisation of volume key in crypt_init_by_name().
* Do not allow key retrieval while suspended (key could be wiped).
* Do not allow suspend for non-LUKS devices.
* Support retries and timeout parameters for luksSuspend.

Add luksSuspend/Resume test.

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

12 years agoAdd crypt_get_iv_offset() function to API.
Milan Broz [Mon, 18 Jul 2011 13:03:15 +0000 (13:03 +0000)]
Add crypt_get_iv_offset() function to API.

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

12 years agoAdd --enable-discards option to allow discards/TRIM requests.
Milan Broz [Sun, 17 Jul 2011 22:35:40 +0000 (22:35 +0000)]
Add --enable-discards option to allow discards/TRIM requests.

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

12 years agoUse struct volume key thorough.
Milan Broz [Sun, 17 Jul 2011 22:35:30 +0000 (22:35 +0000)]
Use struct volume key thorough.

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

12 years agoRewrite dm query/create function backend.
Milan Broz [Sun, 17 Jul 2011 22:35:17 +0000 (22:35 +0000)]
Rewrite dm query/create function backend.

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

12 years agoupdated txt version
Arno Wagner [Thu, 14 Jul 2011 22:15:37 +0000 (22:15 +0000)]
updated txt version

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