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:
Jukka Laitinen
2021-06-25 08:35:58 +02:00
committed by Beat Küng
parent 0d4f481035
commit d83033f449
5 changed files with 93 additions and 9 deletions
@@ -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;