Changes

142 bytes removed ,  18:32, 12 May 2020
Line 163: Line 163:  
| 0xC3000004 || [[#GetConfig]] (same as in [[#FunctionId0]])
 
| 0xC3000004 || [[#GetConfig]] (same as in [[#FunctionId0]])
 
|-
 
|-
| 0xC3000005 || [[#GenerateRandomBytes]] (same as in [[#FunctionId0]])
+
| 0xC3000005 || [[#GenerateRandomBytes|GenerateRandomBytesNonBlock]] (same as in [[#FunctionId0]])
 
|-
 
|-
 
| 0xC3000006 || [[#ShowError]]
 
| 0xC3000006 || [[#ShowError]]
Line 772: Line 772:  
===== Package2Hash =====
 
===== Package2Hash =====
 
This is a SHA-256 hash calculated over the [[Package2|package2]] image. Since the hash calculation is an optional step in pkg2ldr, this item is only valid in recovery mode. Otherwise, an error is returned instead.
 
This is a SHA-256 hash calculated over the [[Package2|package2]] image. Since the hash calculation is an optional step in pkg2ldr, this item is only valid in recovery mode. Otherwise, an error is returned instead.
  −
=== GenerateRandomBytes ===
  −
Takes an u64 '''Size'''. Returns [[#Result]] and '''RandomBytes'''.
  −
  −
The kernel limits '''Size''' to 0x38 (for fitting in return registers).
      
=== ShowError ===
 
=== ShowError ===