Difference between revisions of "SKC"

From iQueBrew
Jump to navigation Jump to search
(add skcKeepAlive)
Line 14: Line 14:
 
|  0x3 || skcVerifyRecryptSys || $a0=address of recrypt.sys contents
 
|  0x3 || skcVerifyRecryptSys || $a0=address of recrypt.sys contents
 
|-
 
|-
|  0x4 || ??? || ???
+
|  0x4 || skRecryptBegin || ???
 
|-
 
|-
|  0x5 || ??? || ???
+
|  0x5 || skRecryptData || ???
 
|-
 
|-
|  0x6 || ??? || ???
+
|  0x6 || skRecryptComputeState || ???
 
|-
 
|-
|  0x7 || ??? || ???
+
|  0x7 || skRecryptEnd || ???
 
|-
 
|-
 
|  0x8 || skcECCSignSHA1Hash || $a0=u8* sha1hash, $a1=u8* out_signature
 
|  0x8 || skcECCSignSHA1Hash || $a0=u8* sha1hash, $a1=u8* out_signature
Line 26: Line 26:
 
|  0x9 || skcVerifySignature || $a0=u8* sha1hash, $a1=u8* signature, $a2=certificate** certificate_chain, $a3=crl** crls?
 
|  0x9 || skcVerifySignature || $a0=u8* sha1hash, $a1=u8* signature, $a2=certificate** certificate_chain, $a3=crl** crls?
 
|-
 
|-
|  0xA || ??? || ???
+
|  0xA || skGetConsumption || ???
 
|-
 
|-
|  0xB || ??? || ???
+
|  0xB || skAdvanceTicketWindow || ???
 
|-
 
|-
|  0xC || ??? || ???
+
|  0xC || skSetLimit || ???
 
|-
 
|-
 
|  0xD || skcReboot || void
 
|  0xD || skcReboot || void

Revision as of 07:17, 29 April 2018

Secure Kernel calls

All secure kernel calls return a s32 error code in $v0. 0 means success, below zero means error.

Id Name In
0x0 skcGetBBID $a0=u32* out_bbid
0x1 skcPrepareCMDAndTik ???
0x2 skcStartContent $a0=address where decrypted content has been loaded
0x3 skcVerifyRecryptSys $a0=address of recrypt.sys contents
0x4 skRecryptBegin ???
0x5 skRecryptData ???
0x6 skRecryptComputeState ???
0x7 skRecryptEnd ???
0x8 skcECCSignSHA1Hash $a0=u8* sha1hash, $a1=u8* out_signature
0x9 skcVerifySignature $a0=u8* sha1hash, $a1=u8* signature, $a2=certificate** certificate_chain, $a3=crl** crls?
0xA skGetConsumption ???
0xB skAdvanceTicketWindow ???
0xC skSetLimit ???
0xD skcReboot void
0xE skcKeepAlive void