[Cryptography] Speeding up Linux disk encryption

Arnold Reinhold agr at me.com
Wed Mar 31 16:58:57 EDT 2021


I found this interesting article from Cloudfare on their efforts to speed up Linux disk encryption:

https://blog.cloudflare.com/speeding-up-linux-disk-encryption/ <https://blog.cloudflare.com/speeding-up-linux-disk-encryption/>

The level of complexity seems concerning given the increased opportunity for error. One obstacle that struck me is the the Intel AES-NI hardware instructions cannot be used within interrupt service routines because the Intel instructions use the floating point registers to store the round constants and Linux interrupts do not save those registers for performance reasons. Also floating point operations can throw their own interrupts, which could be problematic. (One is advised not to use floating point in Linux interrupt service routines for these reasons.) Does ARM AES hardware have similar problems? RISC-V?

Arnold Reinhold
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.metzdowd.com/pipermail/cryptography/attachments/20210331/ed27721c/attachment.htm>


More information about the cryptography mailing list