Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys/arch/evbppc



Module Name:    src
Committed By:   jmcneill
Date:           Tue Nov 11 21:34:48 UTC 2025

Modified Files:
        src/sys/arch/evbppc/conf: WII files.wii
        src/sys/arch/evbppc/include: wii.h
Added Files:
        src/sys/arch/evbppc/wii/dev: hwaes.c

Log Message:
wii: Add support for hardware AES engine and cgd(4) to the WII kernel.

Add a driver for the Nintendo Wii's AES engine. The driver registers an
AES implementation for kernel use via aes_md_init(). AES-128 requests are
accelerated by hardware and all other requests are passed through to the
default (BearSSL aes_ct) implementation.

Add cgd(4) to the Wii kernel to enable disk encryption support.

Tested performance with cgd(4) and AES-128-CBC on a USB flash drive:

  hwaes:   33513984 bytes transferred in 2.245 secs (14928277 bytes/sec)
  bear:    33513984 bytes transferred in 7.581 secs (4420786 bytes/sec)

Many thanks to Taylor Campbell who walked me through implementing support
for non-CBC modes.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/evbppc/conf/WII
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/evbppc/conf/files.wii
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/evbppc/include/wii.h
cvs rdiff -u -r0 -r1.1 src/sys/arch/evbppc/wii/dev/hwaes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index