mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-14 00:01:36 +08:00
Take the crypto_backend library into use in bootloader for signature verification
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Beat Küng
parent
0d4f481035
commit
d83033f449
@@ -51,6 +51,10 @@
|
||||
#include "cdcacm.h"
|
||||
#include "uart.h"
|
||||
|
||||
#ifdef BOOTLOADER_USE_SECURITY
|
||||
#include <px4_platform_common/crypto_backend.h>
|
||||
#endif
|
||||
|
||||
// bootloader flash update protocol.
|
||||
//
|
||||
// Command format:
|
||||
@@ -301,6 +305,11 @@ jump_to_app()
|
||||
}
|
||||
|
||||
#ifdef BOOTLOADER_USE_TOC
|
||||
|
||||
#ifdef BOOTLOADER_USE_SECURITY
|
||||
crypto_init();
|
||||
#endif
|
||||
|
||||
const image_toc_entry_t *toc_entries;
|
||||
uint8_t len;
|
||||
uint8_t i = 0;
|
||||
|
||||
Reference in New Issue
Block a user