PSPXI:GenerateRandomBytes

From 3dbrew
Revision as of 10:01, 26 May 2024 by AriA99 (talk | contribs) (Add a short description how this thing works, the whole thing is too ugly to restate)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Request[edit]

Index Word Description
0 Header code [0x000D0042]
1 Output buffer size
2 (Size<<8) | 0x4
3 Output buffer pointer

Response[edit]

Index Word Description
0 Header code
1 Result code

Description[edit]

Generates random bytes using the FIPS 186-2 (change notice 1) appendix 3 generator using SHA-1.