3 ms·
Seriously? They left out Cryptography Extensions from the RPi4 SoC? Any source / references? http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.100097
by vardump 7y ago
Seriously? They left out Cryptography Extensions from the RPi4 SoC? Any source / references?
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.100097_0002_04_en/way1395175472464.html http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc....
Edit: Ouch if this turns out to be true... https://www.raspberrypi.org/forums/viewtopic.php?t=243410 https://www.raspberrypi.org/forums/viewtopic.php?t=243410
Edit 2: Ah, also RPi3B and 3B+ didn't have those extensions. Oh well.
Edit 3: Just tested my bog standard RPi3B+ running Raspbian. It could do "openssl speed -elapsed aes-256-cbc" 43 MB/s AES-256-CBC. Tried also with "-multi 4" and it resulted 144 MB/s using all 4 cores. So perhaps RPi4 will be fast enough with CPU only crypto... would still love to have HW assist.
Edit 4: RPi4 running 32-bit OS can do about 65 MB/s per core aes-256-cbc. 85 MB/s per core for aes-128-cbc. So by using two CPU cores for encryption (+ heatsink + fan :-)) 1 Gbps ethernet can be saturated.
- megous 7y agoNice investigation!
- vardump 7y agoI believe it might be possible to use VideoCore VI for crypto acceleration. I think it would be pretty tricky to get LUKS to use it, though. At least writing a kernel module, but most likely LUKS patch would be required. You'd probably have to choose between 3D acceleration and full disk encryption. Looks like VideoCore VI is getting some compute shader support: https://gitlab.freedesktop.org/anholt/mesa/tree/v3d-cs/src/gallium/drivers/v3d https://gitlab.freedesktop.org/anholt/mesa/tree/v3d-cs/src/g...