Difference between revisions of "Process Services"

From 3dbrew
Jump to navigation Jump to search
Line 20: Line 20:
 
| [[PS:EncryptSignDecryptVerifyAesCcm|EncryptSignDecryptVerifyAesCcm]]
 
| [[PS:EncryptSignDecryptVerifyAesCcm|EncryptSignDecryptVerifyAesCcm]]
 
|-
 
|-
| 0x0006....
+
| 0x00060040
| GetRomId
+
| GetRomId (u32 processID)
 
|-
 
|-
| 0x0007....
+
| 0x00070040
| GetRomId2
+
| GetRomId2 (u32 processID)
 
|-
 
|-
| 0x0008....
+
| 0x00080040
| GetRomMakerCode
+
| GetRomMakerCode (u32 processID)
 
|-
 
|-
| 0x0009....
+
| 0x00090000
 
| GetCTRCardAutoStartupBit
 
| GetCTRCardAutoStartupBit
 
|-
 
|-
| 0x000A....
+
| 0x000A0000
 
| GetLocalFriendCodeSeed
 
| GetLocalFriendCodeSeed
 
|-
 
|-
| 0x000B....
+
| 0x000B0000
 
| GetDeviceId
 
| GetDeviceId
 
|-
 
|-
Line 44: Line 44:
 
| GenerateRandomBytes
 
| GenerateRandomBytes
 
|}
 
|}
 +
 +
These commands are an interface for [[Process_Services_PXI]].
 +
 +
For GetRomId, GetRomId2, and GetRomMakerCode, PS-module uses [[FS:GetProgramLaunchInfo]] with the processID which was sent to PS-module via the command input. If GetProgramLaunchInfo fails, PS-module returns error 0xC90107FA. When the mediatype is value2 for gamecard, the PSPXI command is used, otherwise PS-module just clears the output data for the command response.

Revision as of 19:38, 6 April 2014

Command Header Description
0x00010244 SignRsaSha256
0x00020244 VerifyRsaSha256
Not implemented SetAesKey
0x00040204 EncryptDecryptAes
0x00050284 EncryptSignDecryptVerifyAesCcm
0x00060040 GetRomId (u32 processID)
0x00070040 GetRomId2 (u32 processID)
0x00080040 GetRomMakerCode (u32 processID)
0x00090000 GetCTRCardAutoStartupBit
0x000A0000 GetLocalFriendCodeSeed
0x000B0000 GetDeviceId
0x000C0000 GatherEntropy
0x000D0042 GenerateRandomBytes

These commands are an interface for Process_Services_PXI.

For GetRomId, GetRomId2, and GetRomMakerCode, PS-module uses FS:GetProgramLaunchInfo with the processID which was sent to PS-module via the command input. If GetProgramLaunchInfo fails, PS-module returns error 0xC90107FA. When the mediatype is value2 for gamecard, the PSPXI command is used, otherwise PS-module just clears the output data for the command response.