Fusee Stage 2: Flesh out Package2 patching (implement decryption, fixing of metadata)

This commit is contained in:
Michael Scire
2018-04-11 20:29:35 -06:00
parent a0d2642bb1
commit e5a0cb1abe
6 changed files with 411 additions and 23 deletions

View File

@@ -1,4 +1,5 @@
#include "key_derivation.h"
#include "masterkey.h"
#include "se.h"
#include "exocfg.h"
#include "fuse.h"
@@ -125,6 +126,9 @@ void derive_nx_keydata(u32 target_firmware) {
default:
generic_panic();
}
/* Setup master key revision, derive older master keys for use. */
mkey_detect_revision();
}
/* Sets final keyslot flags, for handover to TZ/Exosphere. Setting these will prevent the BPMP from using the device key or master key. */