Skip to content

Commit

Permalink
Added detection for secure3 (New 3DS) crypto.
Browse files Browse the repository at this point in the history
  • Loading branch information
profi200 committed Dec 24, 2014
1 parent e6f84e1 commit 038aca2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ctrtool/ncch.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ void ncch_print(ncch_context* ctx)
fprintf(stdout, " > Crypto key: %s\n", programid_is_system(header->programid)? "Fixed":"Zeros");
else if (header->flags[3] & 1)
fprintf(stdout, " > Crypto key: Secure2\n");
else if (header->flags[3] & 10)
fprintf(stdout, " > Crypto key: secure3 (New 3DS)\n");
else
fprintf(stdout, " > Crypto key: Secure\n");
fprintf(stdout, " > Form type: %s\n", formtypetostring(header->flags[5]));
Expand Down

0 comments on commit 038aca2

Please sign in to comment.