SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
29.77k stars 3.15k forks source link

Change symmetric cipher interface. #24671

Open MarekKnapek opened 5 days ago

MarekKnapek commented 5 days ago

Change symmetric cipher interface so that multiple blocks could be submitted for en-/de-cryption at once. This would open the possibility to 1) use the VAES x86 instruction set, 2) interleave the currently proposed AES-NI instructions (AES is done in multiple rounds (up to 14) and each successive round depends on result of the previous one, but multiple blocks could be crypted in i-th round at the same time, if the CPU has more than one AES unit (they have), applicable to ECB, CTR, GCM modes and CBC, CFB decrypt modes).

Links:

MarekKnapek commented 5 days ago

Intel SDE (simulator): https://www.intel.com/content/www/us/en/developer/articles/tool/software-development-emulator.html