#ifndef NL_FWUP_HOOK_H #define NL_FWUP_HOOK_H #include #include /* Called by the SDK updater (sdk/Platform/Common/fwup/wm_fwup.c) after the image CRC * matched. sha256 covers the T_BOOTER header plus payload, tail is the 512 byte block * appended to the image. Return true to accept the image. * Strong definition: src/sys/nl_ota.c (checks the trailer via nl_trailer_verify()). */ bool nl_fwup_verify_tail(const uint8_t sha256[32], const uint8_t *tail, uint32_t tail_len); #endif