fusee: Finish implementing support for 6.0.0

This commit is contained in:
hexkyz
2018-09-20 20:02:10 +01:00
parent 532b4f4de2
commit f622eac36e
4 changed files with 67 additions and 22 deletions

View File

@@ -20,7 +20,6 @@
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include "masterkey.h"
typedef enum BisPartition {
BisPartition_Calibration = 0,
@@ -41,11 +40,9 @@ typedef struct nx_keyblob_t {
};
} nx_keyblob_t;
/* TSEC fw must be 0x100-byte-aligned. */
int derive_nx_keydata(uint32_t target_firmware, const nx_keyblob_t *keyblobs, uint32_t available_revision, const void *tsec_fw, size_t tsec_fw_size);
int load_package1_key(uint32_t revision);
void finalize_nx_keydata(uint32_t target_firmware);
void derive_bis_key(void *dst, BisPartition partition_id, uint32_t target_firmware);
#endif