In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Difference between revisions of "/dev/hmac"

From WiiBrew
Jump to navigation Jump to search
(basic info on supported commands)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
'''/dev/hmac''' is a device created by [[IOSP]] that can be accessed either by opening it with IOS_Open or by using FD 0x10002. It does not seem to exist in [[IOS28]] and above.
+
'''/dev/hmac''' is a device created by [[IOSP]] that can be accessed either by opening it with IOS_Open or by using FD 0x10002. It does not seem to exist in [[IOS28]] and above as it got merged in [[:/dev/sha]]
  
 
== IOS_Ioctlv commands ==
 
== IOS_Ioctlv commands ==
Line 12: Line 12:
 
| 3
 
| 3
 
| 2
 
| 2
| Second vec must have length 4.
+
| Possibly inner hash? Second vec must have length 4.
 
|-
 
|-
 
| 1
 
| 1
Line 22: Line 22:
 
| 3
 
| 3
 
| 2
 
| 2
| Similar to request 0, but with a different constant (0x5c instead of 0x36)
+
| Possibly outer hash? Most code is shared with request 0.
 
|}
 
|}
  
 
[[Category:Wii Filesystem]]
 
[[Category:Wii Filesystem]]

Latest revision as of 21:59, 17 January 2023

/dev/hmac is a device created by IOSP that can be accessed either by opening it with IOS_Open or by using FD 0x10002. It does not seem to exist in IOS28 and above as it got merged in /dev/sha

IOS_Ioctlv commands

Command In count Io count Notes
0 3 2 Possibly inner hash? Second vec must have length 4.
1 3 2
2 3 2 Possibly outer hash? Most code is shared with request 0.