Ondrej Kozina
7db83f8fb3
Simplify fvault activation by volume key.
2024-10-30 13:28:56 +00:00
Ondrej Kozina
00b89c4862
Export expected fvault2 volume key size.
2024-10-30 13:28:56 +00:00
Milan Broz
661f57def4
Use SPDX license identifiers.
...
This patch switches code to SPDX one-line license identifiers according to
https://spdx.dev/learn/handling-license-info/
and replacing long license text headers.
I used C++ format on the first line in style
// SPDX-License-Identifier: <id>
except exported libcryptsetup.h, when only C comments are used.
The only additional changes are:
- switch backend utf8.c from LGPL2+ to LGPL2.1+ (as in systemd)
- add some additional formatting lines.
2024-06-03 16:38:15 +00:00
Milan Broz
40e5c7d095
Use crypt_safe_memcpy for operations with key.
2024-05-03 11:52:09 +00:00
Milan Broz
482c819ea2
fvault2: fix compilatioon with very old uuid.h
...
UUID_STR_LEN is undefined for old headers, just
use internal definition (both are 37 bytes).
2023-01-17 13:32:29 +00:00
Milan Broz
c7bbae01a6
Fix some strings for translations.
...
No need to translate debug strings.
Fix spaces in key slot queries.
2022-11-20 12:36:26 +01:00
Milan Broz
6c2e64bf75
fvault2: fix typo
2022-11-18 22:25:31 +01:00
Milan Broz
faf3b27f51
fvault2: reduce debug log, do not print ignored metadata blocks
2022-11-18 14:31:25 +01:00
Ondrej Kozina
81c56a8395
Move assert include in internal header files.
2022-11-16 16:54:33 +01:00
Milan Broz
3333f3e9bb
Fix some warning detected by Coverity.
...
The FVAULT2 block is always 8192 bytes (for CRC), but used
struct is smaller. Let's not confuse struct size with whole block.
2022-11-15 10:47:22 +01:00
Milan Broz
b086430877
fvault2: Move messages to debug level and add more debug log.
2022-11-14 21:50:18 +01:00
Milan Broz
01f3f3e66c
fvault2: volume size can be unsigned 64bit
2022-11-14 21:50:18 +01:00
Milan Broz
e37d8bdf91
fvault2: harden device offset check
...
Check if value overflows and do not allow reading
metadata block exceeding fixed offset.
2022-11-14 21:50:18 +01:00
Milan Broz
8b4a5e5931
fvault2: some more code cleanup.
2022-11-14 21:50:18 +01:00
Milan Broz
33d8d19408
fvault2: passphr -> passphrase
2022-11-14 21:50:18 +01:00
Milan Broz
9bb98d49c0
fvault2: some minor code reformatting changes.
2022-11-14 21:50:18 +01:00
Pavel Tobias
1c5fd5ae10
Fvault2: add basic error logs
2022-11-14 21:50:18 +01:00
Milan Broz
3d1b965c46
fvault2: fix --test-passphrase option
2022-11-14 21:50:18 +01:00
Pavel Tobias
cd5bd1c773
Fvault2: store UUIDs in text format
2022-11-14 21:50:18 +01:00
Pavel Tobias
cb9deaf354
Fvault2: implement open
2022-11-14 21:50:18 +01:00
Pavel Tobias
0ce5de9c1c
Fvault2: implement dump
2022-11-14 21:50:18 +01:00
Pavel Tobias
35071c6d50
Fvault2: derive volume key
2022-11-14 21:50:18 +01:00
Pavel Tobias
af6ea01997
Fvault2: read all relevant metadata from device
2022-11-14 21:50:18 +01:00
Pavel Tobias
1ffc9d967c
Fvault2: prepare module in libcryptsetup
2022-11-14 21:50:18 +01:00