diff options
Diffstat (limited to 'chip/g/loader/launch.c')
-rw-r--r-- | chip/g/loader/launch.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chip/g/loader/launch.c b/chip/g/loader/launch.c index 54d75e8dd1..5ef3ba8c62 100644 --- a/chip/g/loader/launch.c +++ b/chip/g/loader/launch.c @@ -5,11 +5,12 @@ #include "debug_printf.h" #include "hw_sha256.h" +#include "key_ladder.h" #include "registers.h" #include "rom_flash.h" #include "setup.h" -#include "verify.h" #include "uart.h" +#include "verify.h" #include "util/signer/common/signed_header.h" @@ -204,7 +205,7 @@ void tryLaunch(uint32_t adr, size_t max_size) GREG32(KEYMGR, FWR_VLD) = 2; GREG32(KEYMGR, FWR_LOCK) = 1; - hwKeyLadderStep(40, FAKE_rom_hash); + key_ladder_step(40, FAKE_rom_hash); /* TODO: do cert #40 and lock in ROM? */ GREG32(GLOBALSEC, HIDE_ROM) = 1; |