diff options
author | George Hotz <geohot@gmail.com> | 2011-01-11 03:54:01 -0500 |
---|---|---|
committer | George Hotz <geohot@gmail.com> | 2011-01-11 03:54:01 -0500 |
commit | 55f8b0d461d78ed86db0c87adb333fcb9b1eb223 (patch) | |
tree | 87087fc62d65dbef4f5632f5785f517108dbc952 | |
parent | 0d53596107efda4964617340b116e168e20d801a (diff) | |
download | ps3publictools-master.tar.xz |
-rwxr-xr-x | make_self.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/make_self.c b/make_self.c index e1ee534..e052d1f 100755 --- a/make_self.c +++ b/make_self.c @@ -53,8 +53,7 @@ u8 nubpadding_static[] = { u8 cflags_static[] = {
0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x30,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,
0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- //0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
- 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
+ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,
#ifndef NPDRM
0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x62,0x7C,0xB1,0x80,0x8A,0xB9,0x38,0xE3,0x2C,0x8C,0x09,0x17,0x08,0x72,0x6A,0x57,
@@ -308,7 +307,7 @@ void init_Self_NPDRM(Self_NPDRM* npdrm, char* titleid, char* filename) { for(i=0;i<0x10;i++) npdrm_omac_key[i] = npdrm_omac_key1[i] ^ npdrm_omac_key2[i];
int buf_len = 0x30+strlen(true_filename);
- char *buf = (char*)malloc(buf_len);
+ char *buf = (char*)malloc(buf_len+1);
memcpy(buf, npdrm->titleid, 0x30);
strcpy(buf+0x30, true_filename);
aesOmac1Mode(npdrm->hash1, buf, buf_len, npdrm_omac_key3, sizeof(npdrm_omac_key3)*8);
|