added: makerom

It has some issues, but I'm going to do anymore work on it.
This commit is contained in:
3DSGuy
2014-05-05 21:00:48 +08:00
parent c56a16756e
commit 6c44c7af5e
168 changed files with 71978 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "lib.h"
#include "cia.h"
#include "tmd.h"
tmd_hdr *GetTmdHdr(u8 *tmd)
{
u32 sigType = u8_to_u32(tmd,BE);
switch(sigType){
case(RSA_4096_SHA1):
case(RSA_4096_SHA256):
return (tmd_hdr*)(tmd+0x240);
case(RSA_2048_SHA1):
case(RSA_2048_SHA256):
return (tmd_hdr*)(tmd+0x140);
case(ECC_SHA1):
case(ECC_SHA256):
return (tmd_hdr*)(tmd+0x7C);
}
return NULL;
}