Closed jollycar closed 6 months ago
I just did a quick test and am not convinced. DEcryption is much more important than ENcryption, since decryption is done much more frequently than encryption, for the most part.
If you have data that proves otherwise, or can share other light on why this is worthwhile, please share.
pw~# cryptsetup benchmark -c aes-xts-plain64
# Tests are approximate using memory only (no storage IO).
# Algorithm | Key | Encryption | Decryption
aes-xts 256b 1737.4 MiB/s 1824.9 MiB/s
pw~# cryptsetup benchmark -c aes-cbc-essiv:sha256
# Tests are approximate using memory only (no storage IO).
# Algorithm | Key | Encryption | Decryption
aes-cbc 256b 918.4 MiB/s 1881.3 MiB/s
I'm adding a way to make the accepted cryptos include aes-* which addresses your request and hopefully any future ones that are found 🤣
This is changed in V12.0. Please test. Thx!
Closing due to no activity. @jollycar please re-open if needed. Thx
In V11.7 you changed the default luks encryption cipher from
xchacha20,aes-adiantum-plain64
toaes-cbc-essiv:sha256
. This has better performance on the raspberry pi5, but I did some investigation and found thataes-xts-plain64
is even more performant thanaes-cbc-essiv:sha256
(in write performance) and has some other advantages:Improved compatibility with SSD drives.
This is a proposal to upgrade the aes encryption to
aes-xts-plain64
I tested this change (and confirmed working) in my fork of sdm: https://github.com/jollycar/sdm The only change you need is
local cipher="aes-cbc-essiv:sha256"
local cipher="aes-xts-plain64"
insdmcryptfs