Add CIA building

Quite a lot of code, yeah.

The built CIA is almost identical to GM9, with the following differences:
1. Paddings are zeroed out
2. Title key is not written (GM9 gets it from support data/ticket db)
3. Ticket content index is slightly different (GM9 likely takes it from the legit ticket, while we are building a fake one)

The 2, 3 points can be fixed probably.
This commit is contained in:
zhupengfei
2020-08-07 08:58:09 +08:00
parent 769162e95c
commit 49ddd86b7a
8 changed files with 514 additions and 41 deletions
+2
View File
@@ -11,6 +11,8 @@ add_library(core STATIC
key/arithmetic128.h
key/key.cpp
key/key.h
ncch/cia_builder.cpp
ncch/cia_builder.h
ncch/ncch_container.cpp
ncch/ncch_container.h
ncch/seed_db.cpp