![]() |
vitasdk
Documentation of the vitasdk
|
Exports for User. More...
Macros | |
| #define | sceSblUtMgrGetCurrentSecureTick sceSblUtMgrGetRemainingValidityTime |
| #define | sceSblUtMgrIsTrilithiumFlagEnabled sceSblUtMgrGetUtName |
Functions | |
| int | sceSblUtMgrGetRemainingValidityTime (int *remaining_seconds) |
| Get the remaining validity time for the initialized Utoken. | |
| int | sceSblUtMgrGetUtName (char *name, SceSize size) |
| Copy the Utoken name. | |
| int | sceSblUtMgrReadUtoken (SceUtoken *utoken, SceSize size) |
| Read and verify the stored encrypted Utoken. | |
| int | sceSblUtMgrResetUtokenFile (void) |
| Overwrite and remove the stored Utoken file. | |
| int | sceSblUtMgrUpdateUtoken (const SceUtoken *utoken, SceSize size) |
| Verify an encrypted Utoken and write it to storage. | |
Exports for User.
Include the header file in your project:
Link the library to the executable:
| #define sceSblUtMgrGetCurrentSecureTick sceSblUtMgrGetRemainingValidityTime |
| #define sceSblUtMgrIsTrilithiumFlagEnabled sceSblUtMgrGetUtName |
| int sceSblUtMgrGetRemainingValidityTime | ( | int * | remaining_seconds | ) |
Get the remaining validity time for the initialized Utoken.
Only system programs may call this function.
| [out] | remaining_seconds | - Receives -1 when no validity deadline is configured or the deadline is 0xFFFFFFFF, 0 when the deadline has passed, or the number of seconds until the deadline otherwise. |
| int sceSblUtMgrGetUtName | ( | char * | name, |
| SceSize | size | ||
| ) |
Copy the Utoken name.
Only system programs may call this function. The Utoken must be initialized. No terminator is added when fewer than 0x18 bytes are copied.
| [out] | name | - Destination buffer. |
| [in] | size | - Destination size. At most 0x18 bytes are copied. |
Read and verify the stored encrypted Utoken.
Only system programs may call this function.
The returned contents remain encrypted; FW 3.60 uses secure-module command 1 only to verify them before copying them to user memory.
| [out] | utoken | - Receives the encrypted Utoken. |
| [in] | size | - Must be at least 0x800; exactly 0x800 bytes are written. |
| int sceSblUtMgrResetUtokenFile | ( | void | ) |
Overwrite and remove the stored Utoken file.
Only system programs may call this function.
Already parsed Utoken flags remain cached on FW 3.60 until the module is reinitialized.
Verify an encrypted Utoken and write it to storage.
Only system programs may call this function.
| [in] | utoken | - Encrypted Utoken to verify and store. |
| [in] | size | - Must be at least 0x800; exactly 0x800 bytes are used. |