NID

From Vita Development Wiki
Jump to navigation Jump to search

NID

Executing sha1 by adding a suffix to the module name or function name optionally, and the first 32 bits of data obtained


example 1

sceDisplayGetFrameBuf

sha1("sceDisplayGetFrameBuf", strlen("sceDisplayGetFrameBuf")) : 542edaee da618e3f 079ac746 92246df1 2aa8f7c7
swap32(0x542edaee) : sceDisplayGetFrameBuf function nid (0xEEDA2E54)


example 2

noname export

sha1("module_start" + nid_suffix_psp2_noname_lib, strlen("module_start") + 16) : 96D15C93 6510321C 7D607B4D FC06BC73 063E2561
swap32(0x96D15C93) : module_start function nid (0x935CD196)


sce suffix's

const char nid_suffix_ps3[] = {
    0x67, 0x59, 0x65, 0x99, 0x04, 0x25, 0x04, 0x90, 0x56, 0x64, 0x27, 0x49, 0x94, 0x89, 0x74, 0x1a
};

const char nid_suffix_ps3_noname_lib[] = {
    0xbc, 0x5e, 0xba, 0x9e, 0x04, 0x25, 0x04, 0x90, 0x5b, 0x64, 0x27, 0x49, 0x94, 0xd9, 0xc4, 0x1f
};

const char nid_suffix_psp2_noname_lib[] = {
    0xc1, 0xb8, 0x86, 0xaf, 0x5c, 0x31, 0x84, 0x64, 0x67, 0xe7, 0xba, 0x5e, 0x2c, 0xff, 0xd6, 0x4a
};