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 byLooking only at the xts mode and 256b keys, I get with the official Raspberry Pi OS:
RPi4:RPi5:
RPi5 has AES.
You can estimate the performance by
Code:
cryptsetup benchmarkcryptsetup benchmark -c xchacha20,aes-adiantum-plain64 -s 256 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/sCode:
# 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/sStatistics: Posted by fik — Thu Jul 17, 2025 9:06 am