Difference between revisions of "/dev/aes"
< /dev
Jump to navigation
Jump to search
m (whoops, wrong button haha) Tag: Undo |
|
(One intermediate revision by the same user not shown) | |
(No difference)
|
Latest revision as of 11:28, 30 October 2024
This article is a stub. You can help WiiBrew by expanding it. |
/dev/aes is an IPC interface for the AES engine that accepts IOS_Open, IOS_Close & IOCTLV commands.
Internally in IOS, it usually has an internal FD of 0x10000. despite this, it is better to do an IOS_Open when using this resource.
/dev/aes IOS_Ioctlv
number | Description | in count | out count | vector | vector length |
---|---|---|---|---|---|
0x00 | Copy | 1 | 1 | input data (16-byte aligned) | - |
output data (16-byte aligned) | - | ||||
0x02 | Encrypt | 2 | 2 | input data (16-byte aligned) | - |
key | 16 bytes | ||||
output data (16-byte aligned) | same as input | ||||
initialization vector | 16 bytes | ||||
0x03 | Decrypt | 2 | 2 | input data (16-byte aligned) | - |
key | 16 bytes | ||||
output data (16-byte aligned) | same as input | ||||
initialization vector | 16 bytes |