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
Milan Broz
3e037b7422
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
2009-10-01 14:11:55 +00:00
Milan Broz
de95a38381
Move dm backend initialisation to library calls.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@125 36d66b0a-2a48-0410-832c-cd162a569da5
2009-10-01 10:14:32 +00:00
Milan Broz
8bec41ab34
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
2009-09-30 15:07:41 +00:00
Milan Broz
5ca9cfde59
Export header backup and restore functions.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@120 36d66b0a-2a48-0410-832c-cd162a569da5
2009-09-29 12:31:49 +00:00
Milan Broz
64c1168b9a
Version 1.1.0-rc1
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@119 36d66b0a-2a48-0410-832c-cd162a569da5
2009-09-29 12:28:54 +00:00
Milan Broz
3a3d3e89e5
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
2009-09-29 11:08:29 +00:00
Milan Broz
93796f4036
... 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
2009-09-28 18:50:05 +00:00
Milan Broz
c096166e48
Remove error message in previous commit.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@116 36d66b0a-2a48-0410-832c-cd162a569da5
2009-09-28 18:42:26 +00:00
Milan Broz
fddd7125ca
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
2009-09-28 18:29:58 +00:00
Milan Broz
e026f089be
Add luksHeaderBackup and luksHeaderRestore commands and API cals.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@114 36d66b0a-2a48-0410-832c-cd162a569da5
2009-09-28 17:45:38 +00:00
Milan Broz
f51c7b62db
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
2009-09-20 18:02:41 +00:00
Milan Broz
ecf46df00e
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
2009-09-15 15:10:34 +00:00
Milan Broz
935e83ebfa
Initialize crypto library before LUKS header load.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@111 36d66b0a-2a48-0410-832c-cd162a569da5
2009-09-15 15:10:23 +00:00
Milan Broz
1e7d8afc99
Fix typo in help text.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@110 36d66b0a-2a48-0410-832c-cd162a569da5
2009-09-11 10:17:54 +00:00
Milan Broz
1cc33f943e
patch 1.patch
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@109 36d66b0a-2a48-0410-832c-cd162a569da5
2009-09-10 12:41:18 +00:00
Milan Broz
e479b0988f
Use selinux libs only when needed (fixes previous commit).
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@108 36d66b0a-2a48-0410-832c-cd162a569da5
2009-09-08 13:08:36 +00:00
Milan Broz
76d7fab0c7
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
2009-09-08 12:53:00 +00:00
Milan Broz
dfadce6d80
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
2009-09-08 10:29:50 +00:00
Milan Broz
a47856ac49
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
2009-09-08 06:41:44 +00:00
Milan Broz
3cea5dcc7b
* 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
2009-09-02 12:47:21 +00:00
Milan Broz
52b0271a0e
Disable --non-exclusive test.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@103 36d66b0a-2a48-0410-832c-cd162a569da5
2009-08-31 17:15:07 +00:00
Milan Broz
bcd94f6ad4
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
2009-08-31 17:03:22 +00:00
Milan Broz
771db939ad
* 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
2009-08-31 17:03:10 +00:00
Milan Broz
8a0553d452
Add plain crypt device test using new API.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@100 36d66b0a-2a48-0410-832c-cd162a569da5
2009-08-31 10:36:36 +00:00
Milan Broz
c878e56237
* 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
2009-08-30 18:10:23 +00:00
Milan Broz
3deabc8e56
* 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
2009-08-30 18:10:11 +00:00
Milan Broz
7bc5829c43
* 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
2009-08-30 18:10:02 +00:00
Milan Broz
d70782478e
* 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
2009-08-30 18:09:53 +00:00
Milan Broz
344a162a29
* 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
2009-08-30 18:09:43 +00:00
Milan Broz
74b26c7b8a
* 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
2009-08-30 18:09:34 +00:00
Milan Broz
cee0f0b49f
* 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
2009-08-30 18:09:21 +00:00
Milan Broz
bf7819ccef
* 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
2009-08-30 18:07:17 +00:00
Milan Broz
4e471a9b03
* 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
2009-08-30 18:07:00 +00:00
Milan Broz
ab953b3ff6
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
2009-08-30 17:56:33 +00:00
Milan Broz
5c42db87bf
Test commit.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@89 36d66b0a-2a48-0410-832c-cd162a569da5
2009-08-30 17:49:37 +00:00
Milan Broz
04a0f5dfb8
Fix include path.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@88 36d66b0a-2a48-0410-832c-cd162a569da5
2009-08-28 15:54:03 +00:00
Milan Broz
b30c1c7f43
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
2009-08-28 15:22:37 +00:00
Milan Broz
d980dbb300
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
2009-08-17 11:04:36 +00:00
Milan Broz
02707608db
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
2009-08-17 11:03:29 +00:00
Milan Broz
a0d1056e0f
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
2009-08-17 06:28:22 +00:00
Milan Broz
a0b795becb
Enable LUKS hash setting and document it.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@83 36d66b0a-2a48-0410-832c-cd162a569da5
2009-07-30 15:02:53 +00:00
Milan Broz
1a10c59b97
Remove internal SHA1 implementation, not needed now.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@82 36d66b0a-2a48-0410-832c-cd162a569da5
2009-07-30 15:01:22 +00:00
Milan Broz
88bdb609a8
Move XOR function to af.c, nobody outside of it use it now.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@81 36d66b0a-2a48-0410-832c-cd162a569da5
2009-07-30 14:59:10 +00:00