Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cielavenir committed Oct 28, 2013
1 parent 1d535e3 commit 7a7caa9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions endecrypter.c
Expand Up @@ -775,9 +775,14 @@ int main(int argc, char **argv){
for(;j<nlabel;j++){
if(!strcmp(p+label_offset+read16(p+20+16*j),"SAVEDATA_FILE_LIST")){
int paramsize=read32(p+20+16*i+8);
char param[paramsize];
#ifdef HASHTEST
fwrite(p+data_offset+read32(p+20+16*i+12),1,paramsize,stdout);
UpdateSavedataHashes(p+data_offset+read32(p+20+16*i+12),inbuf,size);
fwrite(p+data_offset+read32(p+20+16*i+12),1,paramsize,stdout); ///
memcpy(param,p+data_offset+read32(p+20+16*i+12),paramsize);
memset(p+data_offset+read32(p+20+16*i+12),0,paramsize);
//UpdateSavedataHashes(p+data_offset+read32(p+20+16*i+12),inbuf,size);
UpdateSavedataHashes(param,p,sfosize);
memcpy(p+data_offset+read32(p+20+16*i+12),param,paramsize); /// these two outputs should be the same
fwrite(p+data_offset+read32(p+20+16*i+12),1,paramsize,stdout);
#else
EncryptSavedata(inbuf, size, key, p+data_offset+read32(p+20+16*j+12)+0x0d);
Expand Down

0 comments on commit 7a7caa9

Please sign in to comment.