Opened 5 years ago

Closed 5 years ago

#10991 closed enhancement (fixed)


Reported by: Douglas R. Reno Owned by: blfs-book
Priority: normal Milestone: 8.3
Component: BOOK Version: SVN
Severity: normal Keywords:


New point release

Change History (2)

comment:1 by Bruce Dubbs, 5 years ago

Cryptsetup 2.0.4 Release Notes

Changes since version 2.0.3

  • Use the libblkid (blockid) library to detect foreign signatures on a device before LUKS format and LUKS2 auto-recovery.

This change fixes an unexpected recovery using the secondary LUKS2 header after a device was already overwritten with another format (filesystem or LVM physical volume).

LUKS2 will not recreate a primary header if it detects a valid foreign signature. In this situation, a user must always use cryptsetup repair command for the recovery.

Note that libcryptsetup and utilities are now linked to libblkid as a new dependence.

To compile code without blockid support (strongly discouraged), use --disable-blkid configure switch.

  • Add prompt for format and repair actions in cryptsetup and integritysetup if foreign signatures are detected on the device through the blockid library.

After the confirmation, all known signatures are then wiped as part of the format or repair procedure.

  • Print consistent verbose message about keyslot and token numbers. For keyslot actions: Key slot <number> unlocked/created/removed. For token actions: Token <number> created/removed.
  • Print error, if a non-existent token is tried to be removed.
  • Add support for LUKS2 token definition export and import.

The token command now can export/import customized token JSON file directly from command line. See the man page for more details.

  • Add support for new dm-integrity superblock version 2.
  • Add an error message when nothing was read from a key file.
  • Update cryptsetup man pages, including --type option usage.
  • Add a snapshot of LUKS2 format specification to documentation and accordingly fix supported secondary header offsets.
  • Add bundled optimized Argon2 SSE (X86_64 platform) code.

If the bundled Argon2 code is used and the new configure switch --enable-internal-sse-argon2 option is present, and compiler flags support required optimization, the code will try to use optimized and faster variant.

Always use the shared library (--enable-libargon2) if possible.

This option was added because an enterprise distribution rejected to support the shared Argon2 library and native support in generic cryptographic libraries is not ready yet.

  • Fix compilation with crypto backend for LibreSSL >= 2.7.0. LibreSSL introduced OpenSSL 1.1.x API functions, so compatibility wrapper must be commented out.
  • Fix on-disk header size calculation for LUKS2 format if a specific data alignment is requested. Until now, the code used default size that could be wrong for converted devices.

comment:2 by Bruce Dubbs, 5 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.