1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 21:38:26 +00:00
trezor-firmware/micropython/bootloader/crypto.h

12 lines
250 B
C
Raw Normal View History

2016-10-04 16:01:48 +00:00
#ifndef __BOOTLOADER_CRYPTO_H__
#define __BOOTLOADER_CRYPTO_H__
#include <stdint.h>
#include <stdbool.h>
2017-02-19 16:48:28 +00:00
bool parse_header(const uint8_t *data, uint32_t *codelen, uint8_t *sigidx, uint8_t *sig);
2016-10-04 16:01:48 +00:00
2017-02-19 16:48:28 +00:00
bool check_signature(const uint8_t *start);
2017-02-16 12:48:28 +00:00
2016-10-04 16:01:48 +00:00
#endif