diff options
author | Princess of Sleeping | 2018-09-01 04:25:04 +0900 |
---|---|---|
committer | Sunguk Lee | 2018-09-01 04:25:04 +0900 |
commit | f92755d87ca93acf50f2627eece62ee0c3f9f7e2 (patch) | |
tree | 2f00987e71633a267c950521cfe20c1007f95bf2 | |
parent | Add psp2kern/kernel/utils.h (#349) (diff) | |
download | vds-libraries-f92755d87ca93acf50f2627eece62ee0c3f9f7e2.tar.gz |
Add some functions of SceKernelUtilsForDriver (#350)
* Add some functions of SceKernelUtilsForDriver
* Add some nid of SceKernelUtilsForDriver
-rw-r--r-- | include/kernel/kernel/utils.h | 4 | ||||
-rw-r--r-- | nids/360/SceSysmem.yml | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/kernel/kernel/utils.h b/include/kernel/kernel/utils.h index bbfaaf7..cf56a71 100644 --- a/include/kernel/kernel/utils.h +++ b/include/kernel/kernel/utils.h @@ -60,6 +60,10 @@ int sceSha256BlockUpdate(SceSha256Context *pContext, const void *plain, uint32_t int sceSha256BlockResult(SceSha256Context *pContext, char *digest); int sceSha256Digest(const void *plain, uint32_t len, char *result); +int sceHmacSha1Digest(const unsigned char *key, uint32_t key_len, const void *plain, uint32_t len, char *result); +int sceHmacSha224Digest(const unsigned char *key, uint32_t key_len, const void *plain, uint32_t len, char *result); +int sceHmacSha256Digest(const unsigned char *key, uint32_t key_len, const void *plain, uint32_t len, char *result); + #ifdef __cplusplus } #endif diff --git a/nids/360/SceSysmem.yml b/nids/360/SceSysmem.yml index 63da98f..aa1c2c0 100644 --- a/nids/360/SceSysmem.yml +++ b/nids/360/SceSysmem.yml @@ -65,6 +65,9 @@ modules: sceGzipGetInfo: 0xFFC6A10F sceGzipGetName: 0xF901FD3E sceGzipIsValid: 0xD8FAEFD4 + sceHmacSha1Digest: 0x29A28957 + sceHmacSha224Digest: 0x7F2A7B99 + sceHmacSha256Digest: 0x83EFA1CC sceMt19937Init: 0x4C9A5730 sceMt19937UInt: 0x92AEDFBC sceSfmt19937FillArray32: 0x2B30548B |