wii-linux-ngx icon indicating copy to clipboard operation
wii-linux-ngx copied to clipboard

AES in-kernel hardware acceleration

Open neagix opened this issue 7 years ago • 4 comments

It should be possible to implement hardware-accelerated AES kernel module.

For reference: http://wiibrew.org/wiki/Hardware/AES_Engine And: http://gitweb.bootmii.org/?p=mini.git;a=blob;f=crypto.c;hb=HEAD

Cc @marcan

neagix avatar Aug 19 '17 21:08 neagix

Only for 128-bit keys and only CBC mode (unless you go by single blocks), but yes.

marcan avatar Aug 19 '17 22:08 marcan

Hi, I’ve written a driver for that device as part of the Linux Wii U effort, see https://gitlab.com/linux-wiiu/linux-wiiu/-/commit/96dbb3b91447c025a28a90cb0869aef052c558f8

I do intend to mainline that, but for now nothing is there for the Wii U so you may have more luck upstreaming is as part of the Wii effort since the platform at least is already in there.

linkmauve avatar Apr 23 '21 18:04 linkmauve

That looks great! It should work with minor changes for the Wii, however I am not tweaking this kernel much these days.

neagix avatar Apr 23 '21 18:04 neagix

It will end up in mainline at some point, hopefully once it is you will just have to rebase your work on linux-next and make the tweaks there. :)

linkmauve avatar Apr 23 '21 18:04 linkmauve