Ondrej Kozina
4a43a2773a
Add utilities cleanup routine.
2021-02-07 17:36:47 +01:00
Milan Broz
a757d84b91
Update Copyright year.
2021-02-07 16:09:13 +01:00
Milan Broz
080566a1fd
Update copyright year.
2020-01-03 13:04:55 +01:00
Ondrej Kozina
0c8cf5c1e0
Switch cryptsetup-reencrypt to use tools_reencrypt_progress.
2019-10-11 12:39:51 +02:00
Ondrej Kozina
09cb2d76ef
Add dialog with default 'no' answer.
2019-05-22 12:50:17 +02:00
Ondrej Kozina
3f549ad0df
Refactor yesDialog utility.
2019-05-22 12:50:17 +02:00
Ondrej Kozina
092ef90f29
Add autodetection code for active dm device.
2019-05-02 16:44:23 +02:00
Ondrej Kozina
64f59ff71e
Add reencryption progress function.
2019-05-02 16:44:23 +02:00
Milan Broz
a6f5ce8c7b
Update copyright year.
...
And unify name copyright format.
2019-01-25 09:45:57 +01:00
Milan Broz
51dd2762a9
Add --debug-json switch and log level.
...
The JSON structures should not be printed by default to debug log.
This flag introduces new debug level that prints JSON structures
and keeps default debug output separate.
2019-01-10 14:52:49 +01:00
Milan Broz
eabd23f31e
Print verbose message about keyslot and token numbers.
...
Move all messages to cryptsetup tools and print these
verbose messages:
- Key slot X unlocked.
- Key slot X created.
- Key slot X removed.
and
- Token X created.
- Token X removed.
Also print error, if unknown token is tried to be removed.
2018-07-19 14:45:16 +02:00
Ondrej Kozina
cc27088df9
Add support for LUKS2 token export and import.
2018-07-19 14:44:54 +02:00
Ondrej Kozina
30d109c0e9
Add support for blkid scans and signature wiping in tools.
2018-07-11 22:21:32 +02:00
Ondrej Kozina
0c6129c54e
Allow volume key store in a file with cryptsetup.
...
The --dump-master-key together with --master-key-file allows cryptsetup
to store the volume key to a file instead of standard output.
2018-04-19 18:08:37 +02:00
Ondrej Kozina
169d45fbdb
Move reading master key in command line utilities.
...
Move and rename _read_mk->tools_read_mk in utils_password.c
2018-04-12 15:44:19 +02:00
Milan Broz
af0887fb48
Remove no passphrase error message from library.
...
And move it to tools.
This will unify LUKS1/2 error messages.
2018-03-25 14:14:37 +02:00
Milan Broz
1fe014dbae
Update copyright year.
2018-01-20 17:55:21 +01:00
Milan Broz
f34ce81f25
Introduce new 64bit *keyfile_device_offset functions.
...
The keyfile interface was designed, well, for keyfiles.
Unfortunately, a keyfile can be placed on a device and the size_t offset
can overflow.
We have to introduce new set of fucntions that allows 64bit offsets even on 32bit systems:
- crypt_resume_by_keyfile_device_offset
- crypt_keyslot_add_by_keyfile_device_offset
- crypt_activate_by_keyfile_device_offset
- crypt_keyfile_device_read
The new functions have added _device_ in name.
Old functions are just internall wrappers around these.
Also cryptsetup --keyfile-offset and --new-keyfile-offset must now
process 64bit offsets.
For more info see issue 359.
2018-01-17 22:07:23 +01:00
Milan Broz
7e53c87f5c
Add parameter for progress update without in separate lines.
...
Useful for reencryption or integrity format.
2017-10-04 15:22:32 +02:00
Milan Broz
19a1852e4b
Support sector size option even for plain devices.
2017-09-24 19:50:28 +02:00
Milan Broz
540972ff59
Move progress function to utils.
2017-08-22 16:13:40 +02:00
Milan Broz
3a27c84d98
Rewrite and export crypt_wipe function.
...
The crypt_wipe can be used to wipe any part of the device,
and also to initialize integrity based device (to reset checksum).
2017-06-07 15:31:13 +02:00
Milan Broz
98368c4770
Update copyright years.
2017-03-12 13:17:15 +01:00
Milan Broz
65fa22ff23
Override password quality check if used cipher is cipher_null.
2015-08-27 16:21:07 +02:00
Milan Broz
7843415243
Move string_to_size to userspace tools.
2015-08-26 12:42:25 +02:00
Milan Broz
ab62f45d57
Use stdin and "-" file check wrapper.
2015-08-26 10:54:33 +02:00
Milan Broz
bb8dbfdf5b
Update author name.
2014-06-23 21:40:12 +02:00
Cristian Rodríguez
ae23ecb9b2
annotate two function with __attribute__ ((format (printf...
...
Helps to find format strings bugs..
2014-04-12 08:52:06 +02:00
Milan Broz
2e97d8f8e8
Prepare version 1.6.4.
2014-02-27 14:36:13 +01:00
Cristian Rodríguez
1349efa34d
Fix buildsytem to always include config.h.
...
- config.h must always be the first file to be included
- Use AM_CFLAGS and AM_LDFLAGS consistently and properly.
(Modified to disable build without largefile support etc
by Milan Broz <gmazyland@gmail.com >)
2013-06-23 17:14:33 +02:00
Milan Broz
6127b6959f
Update copyright year on changed files.
2013-03-24 09:05:33 +01:00
Milan Broz
fe4175b551
Fix some extended compile warning.
2013-01-10 17:26:19 +01:00
Milan Broz
29f21208a0
Change License from GPLv2 only to GPLv2+ ("or any later").
...
Agreed by all copyright authors.
2012-12-29 11:33:54 +01:00
Milan Broz
83f02e6682
Add copyright line for files I have written or modified.
2012-12-21 16:40:33 +01:00
Milan Broz
e030e3bd15
Add optional libpwquality support for new LUKS passwords.
...
If password is entered through terminal (no keyfile specified)
and cryptsetup is compiled with --enable-pwquality, default
system pwquality settings are used to check password quality.
2012-12-19 17:25:11 +01:00
Milan Broz
c950cf265f
Prepare cryptsetup functions for pwquality check.
2012-12-19 15:27:29 +01:00
Milan Broz
32c578729c
Handle signals in tool context.
2012-12-11 19:01:46 +01:00
Milan Broz
710aad20d3
Move signal handling into common utils code.
2012-12-11 15:40:42 +01:00
Milan Broz
ff9db165eb
Use common utils_tools.c for all tools.
...
Unify tool environment and deduplicate code.
2012-08-13 18:31:26 +02:00
Milan Broz
a9d9a2ad44
Fix hex_to_bytes and add it to common utils.
2012-06-18 17:09:48 +02:00
Milan Broz
4b0b82adc5
Rewrite veritysetup to use libcryptsetup.
2012-06-07 00:18:49 +02:00
Milan Broz
45e0942755
Add --enable-fips for linking with fipscheck library.
...
Initialize binary and library selfcheck if running in FIPS mode.
(Actually available only on Fedora/Red Hat distros.)
2012-05-21 14:09:57 +02:00
Milan Broz
ee8425b836
Version 1.4.2.
...
Add header and copyright for header files.
2012-04-02 22:03:05 +02:00
Milan Broz
93da52f883
Rewrite key input handling, add limits.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@474 36d66b0a-2a48-0410-832c-cd162a569da5
2011-03-19 00:17:10 +00:00
Milan Broz
13f4feaaf7
Add backing device info into status.
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@445 36d66b0a-2a48-0410-832c-cd162a569da5
2011-03-12 20:23:25 +00:00
Milan Broz
bb8e085378
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
2010-10-26 14:34:47 +00:00
Milan Broz
b4ebe0be18
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
2010-05-27 18:44:14 +00:00
Milan Broz
4d6dd0df96
Move default cipher paramaters to config.h and allow change through
...
configuration script.
Change default LUKS keysize to 256.
Change default PLAIN mode to cbc-essiv:sha256.
Note that you have to specify cipher and mode in plain type,
otherwise there is backward incompatibility.
If you really need the same compatible paramaters, you can compile
cryptsetup using old defaults, e.g:
./configure --with-plain-mode=cbc-plain --with-luks1-keybits=128
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@151 36d66b0a-2a48-0410-832c-cd162a569da5
2009-12-01 14:31:08 +00:00
Milan Broz
df389199d0
Use proper NLS macros and detection (so the message translation works again).
...
git-svn-id: https://cryptsetup.googlecode.com/svn/trunk@145 36d66b0a-2a48-0410-832c-cd162a569da5
2009-11-16 20:10:20 +00:00
Milan Broz
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