diff options
Diffstat (limited to 'chip/g/upgrade_fw.c')
-rw-r--r-- | chip/g/upgrade_fw.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chip/g/upgrade_fw.c b/chip/g/upgrade_fw.c index 8cc2f2ceda..045a934448 100644 --- a/chip/g/upgrade_fw.c +++ b/chip/g/upgrade_fw.c @@ -11,9 +11,10 @@ #include "hooks.h" #include "include/compile_time_macros.h" #include "memory.h" -#include "sha1.h" #include "uart.h" +#include "cryptoc/sha.h" + #define CPRINTF(format, args...) cprintf(CC_EXTENSION, format, ## args) /* Various upgrade extension command return values. */ @@ -91,7 +92,7 @@ void fw_upgrade_command_handler(void *body, { struct upgrade_command *cmd_body = body; uint8_t *rv = body; - uint8_t sha1_digest[SHA1_DIGEST_SIZE]; + uint8_t sha1_digest[SHA_DIGEST_SIZE]; size_t body_size; uint32_t block_offset; |