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

Difference between revisions of "/dev/sha"

From WiiBrew
Jump to navigation Jump to search
m
m (oops, forgot to delete the old stuff)
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
Probably [[SHA-1]] hashing engine. The device can be accessed either by opening it with [[IOS/Syscalls#List of syscalls in IOS|IOS_Open]] or by using the FD 0x10001.
+
'''/dev/sha''' is an IPC interface for the [[Hardware/SHA-1 engine | SHA-1 engine]] that accepts IOS_Open, IOS_Close & IOCTLV commands.
 
+
Internally in IOS, it ''usually'' has an internal FD of 0x10001. despite this, it is better to do an IOS_Open when using this resource.
Accept open,close,ioctlv(0xF(some sort of H0,H1,H2 verifying ),1,3,4)
 
 
 
'''/dev/sha''' is an IPC interface for the [[Hardware/SHA-1 engine | SHA-1 engine]].
 
It accepts open, close and ioctlv.
 
  
 
== /dev/sha IOS_Ioctlv ==
 
== /dev/sha IOS_Ioctlv ==

Revision as of 13:49, 24 December 2022

/dev/sha is an IPC interface for the SHA-1 engine that accepts IOS_Open, IOS_Close & IOCTLV commands. Internally in IOS, it usually has an internal FD of 0x10001. despite this, it is better to do an IOS_Open when using this resource.

/dev/sha IOS_Ioctlv

number Description in count out count vector vector length
0x00 ? ? ? ? ?
0x01 ? ? ? ? ?
0x02 ? ? ? ? ?
0x03 ? ? ? ? ?
0x04 ? ? ? ? ?
0x0F some sort of H0,H1,H2 verifying ? ? ? ?