Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8621

Advanced users • Re: Decent performance with LUKS encryption?

$
0
0
The RPi4 does not have the hardware AES instructions, thus the AES performance suffers. The best for RPi4 is probably to use the cipher adiantum: https://en.wikipedia.org/wiki/Adiantum_(cipher)

RPi5 has AES.

You can estimate the performance by

Code:

cryptsetup benchmarkcryptsetup benchmark -c xchacha20,aes-adiantum-plain64 -s 256 
Looking only at the xts mode and 256b keys, I get with the official Raspberry Pi OS:

RPi4:

Code:

# Tests are approximate using memory only (no storage IO).#            Algorithm |       Key |      Encryption |      Decryption        aes-xts               256b        96.7 MiB/s       110.1 MiB/s    serpent-xts               256b               N/A               N/A    twofish-xts               256b        71.3 MiB/s        75.7 MiB/sxchacha20,aes-adiantum        256b       211.8 MiB/s       206.5 MiB/s
RPi5:

Code:

# Tests are approximate using memory only (no storage IO).#            Algorithm |       Key |      Encryption |      Decryption        aes-xts               256b      1123.8 MiB/s      1337.0 MiB/s    serpent-xts               256b               N/A               N/A    twofish-xts               256b       124.3 MiB/s       126.3 MiB/sxchacha20,aes-adiantum        256b       403.2 MiB/s       420.2 MiB/s

Statistics: Posted by fik — Thu Jul 17, 2025 9:06 am



Viewing all articles
Browse latest Browse all 8621

Trending Articles