-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #833 from LiEnby/patch-2
Add functions relating to GC authentication
- Loading branch information
Showing
6 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/** | ||
* \kernelgroup{SceSblGcAuthMgr} | ||
* \usage{psp2kern/kernel/gcauthmgr.h} | ||
*/ | ||
|
||
|
||
#ifndef _PSP2KERN_KERNEL_GCAUTHMGR_H_ | ||
#define _PSP2KERN_KERNEL_GCAUTHMGR_H_ | ||
|
||
#include <psp2kern/kernel/gcauthmgr/drm_bb.h> | ||
#include <psp2kern/kernel/gcauthmgr/gc_auth.h> | ||
|
||
#endif /* _PSP2KERN_KERNEL_GCAUTHMGR_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* \kernelgroup{SceSblGcAuthMgr} | ||
* \usage{psp2kern/kernel/gcauthmgr/drm_bb.h,SceSblGcAuthMgrDrmBBForDriver_stub} | ||
*/ | ||
|
||
#ifndef __PSP2KERN_GCAUTHMGR_DRM_BB_H__ | ||
#define __PSP2KERN_GCAUTHMGR_DRM_BB_H__ | ||
|
||
#include <psp2kern/types.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/** | ||
* @brief Removes derived cart secret from memory. | ||
* | ||
* @return 0 on success, < 0 on error. | ||
*/ | ||
int ksceSblGcAuthMgrDrmBBClearCartSecret(void); | ||
|
||
/** | ||
* @brief Gets derived cart secret from memory. | ||
* | ||
* @param[in] secret - Pointer to 0x20 bytes. | ||
* | ||
* @return 0 on success, < 0 on error. | ||
*/ | ||
int ksceSblGcAuthMgrDrmBBGetCartSecret(void* secret); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __PSP2KERN_GCAUTHMGR_DRM_BB_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/** | ||
* \kernelgroup{SceSblGcAuthMgr} | ||
* \usage{psp2kern/kernel/gcauthmgr/gc_auth.h,SceSblGcAuthMgrGcAuthForDriver_stub} | ||
*/ | ||
|
||
#ifndef __PSP2KERN_GCAUTHMGR_GC_AUTH_H__ | ||
#define __PSP2KERN_GCAUTHMGR_GC_AUTH_H__ | ||
|
||
#include <psp2kern/types.h> | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/** | ||
* @brief Runs gamecart authentication | ||
* | ||
* @param[in] key_id - Not used for anything but must be < 0x10000. | ||
* | ||
* @return 0 on success, < 0 on error. | ||
*/ | ||
int ksceSblGcAuthMgrGcAuthCartAuthentication(SceUInt32 key_id); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif /* __PSP2KERN_GCAUTHMGR_GC_AUTH_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters