From 1d11e0b723cd7979fd39d8e6f45b9e1199526e19 Mon Sep 17 00:00:00 2001 From: Yifan Lu Date: Fri, 24 Feb 2017 04:09:16 -0800 Subject: Added some sblauthmgr functions (#141) Added some sblauthmgr functions Added ksceKernelGetPaddr to headers--- include/kernel/kernel/sysmem.h | 2 ++ include/kernel/sblauthmgr.h | 18 ++++++++++++++++++ nids/360/SceSblAuthMgr.yml | 11 +++++++++++ 3 files changed, 31 insertions(+) create mode 100644 include/kernel/sblauthmgr.h create mode 100644 nids/360/SceSblAuthMgr.yml diff --git a/include/kernel/kernel/sysmem.h b/include/kernel/kernel/sysmem.h index 263f564..ef51466 100644 --- a/include/kernel/kernel/sysmem.h +++ b/include/kernel/kernel/sysmem.h @@ -147,6 +147,8 @@ int sceKernelGetProcessTitleId(SceUID pid, char *titleid, size_t len); int sceKernelMapBlockUserVisible(SceUID uid); +int sceKernelGetPaddr(void *addr, uintptr_t *paddr); + #ifdef __cplusplus } #endif diff --git a/include/kernel/sblauthmgr.h b/include/kernel/sblauthmgr.h new file mode 100644 index 0000000..0b5f64d --- /dev/null +++ b/include/kernel/sblauthmgr.h @@ -0,0 +1,18 @@ +#ifndef _PSP2_KERNEL_SBLAUTHMGR_H_ +#define _PSP2_KERNEL_SBLAUTHMGR_H_ + +#include + +#ifdef __cplusplus +extern "C" { +#endif + +int sceSblAuthMgrClearDmac5Key(int slot_id, int val); +int sceSblAuthMgrSetDmac5Key(const void *key, size_t keylen, int slot_id, int key_id); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_KERNEL_SBLAUTHMGR_H_ */ + diff --git a/nids/360/SceSblAuthMgr.yml b/nids/360/SceSblAuthMgr.yml new file mode 100644 index 0000000..98d7e12 --- /dev/null +++ b/nids/360/SceSblAuthMgr.yml @@ -0,0 +1,11 @@ +modules: + SceSblAuthMgr: + nid: 0xEA5DFC93 + libraries: + SceSblAuthMgrForDriver: + nid: 0x4EB2B1BB + SceSblAuthMgrForKernel: + nid: 0x7ABF5135 + functions: + sceSblAuthMgrClearDmac5Key: 0xF2BB723E + sceSblAuthMgrSetDmac5Key: 0x122ACDEA -- cgit v1.2.3