Bug#1070314: cryptsetup: backward incompatible change for plain mode when relying on defaults
Guilhem Moulin <[email protected]> Mon, 14 Jul 2025 15:03:42 +0200
| Newsgroups | gmane.linux.debian.devel.documentation |
|---|---|
| Message-ID | <aHUALkw2Hip_PML1__29623.4783179656$1752498335$gmane$org@debian.org> |
I Changed “otherwise `cryptsetup` will use default values” to “otherwise default values will be used” because it's the wrappers not the cryptsetup(8) binary which use crypttab(5) directly. LGTM otherwise, thanks! change to default encryption settings for plain-mode dm-crypt devices ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The default settings for ``dm-crypt`` devices created using ``plain``-mode encryption (see :url-man-stable:`crypttab(5)) have changed to improve security. This will cause problems if you did not record the settings used in ``/etc/crypttab``. The recommended way to configure plain-mode devices is to record the options ``cipher``, ``size`, and ``hash`` in ``/etc/crypttab``; otherwise `cryptsetup` will use default values, and the defaults for cipher and hash algorithm have changed in trixie, which will cause such devices to appear as random data until they are properly configured. This does not apply to LUKS devices because LUKS records the settings in the device itself. To properly configure your plain-mode devices, assuming they were created with the bookworm defaults, you should add ``cipher=aes-cbc-essiv:sha256,size=256,hash=ripemd160`` to ``/etc/crypttab``. To access such devices with ``cryptsetup`` on the command line you can use ``--cipher aes-cbc-essiv:sha256 --key-size 256 --hash ripemd160``. Debian recommends that you configure permanent devices with LUKS, or if you do use plain mode, that you explicitly record all the required encryption settings in ``/etc/crypttab``. The new defaults are ``cipher=aes-xts-plain64`` and ``hash=sha256``. -- Guilhem.
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEERpy6p3b9sfzUdbME05pJnDwhpVIFAmh1ACwACgkQ05pJnDwh pVIKDA/+LPNYLPCOOnpsMMwo2kD3hV6MMJAduZTuARXgaJZcMMmq5MNgaGCfFKLu PGMh19LX1d+OWYindI6/lGFyLf+Ot3MmAFC6X97CddnPlHsXXN3kLdmg9BQkiZE6 nwvMJc2osOfbEke8jSxyIrx/Fr2HukEj3mHDbbstAfaUmLMi43EfG0u5wskDd0/1 PUPLL5EV8w7ExgbJ4h6wkNnTWbKTXvZ5Ui+bPijbUrZdDKh6ikvY58xSUXFWxZ29 tfOPWJXyWbY1+OVpdQ1ikkcjDU0HYQ8e7qqStCNnFASDn62nXX4UTcCxO5upAavQ FeicXgknhByEBLACqkxSBg1QUNgn/We78/hBnRrOBU13NMYW38d1I64kA5IvKr8z iOpOvkrMLC2x9kWIqCUz8MW54O/p/LM7bAYRtn3NNhw+RWzw8goMuUo9oI3v3OmE OHL8e2n3ge8KVlJZBTW1Y4dxmc68FPvtPNWKfpoSFktWCpQIA2KAQCGnxM1KJ032 5X+TMi0czrVhZhpuWt45a26Bo3fBgN+y6G9qIhEkrqvqrlxkpBrAiJQNDgcZ/5gS ykfi8Qfr4Fpm10wqwCAGCx3/O32OU4mzqe9o/mMnGOeEwFrOLKYnK0mh78B6vLJB u9ZLMR88N0mf0TD0pZFv+NF1/gcy2E1rEKPp3umok/pRuTkTwZw= =hKsb -----END PGP SIGNATURE-----