mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-10-21 15:01:46 +02:00
Add 0x0026a custom AES-128-CMAC secure bootloader, Week 11a notebook, and README links
This commit is contained in:
1 parent
b85aaf72d6
commit
bec685d573
33 files changed
+3451
No files matched your search
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* @file verify.h
|
||||
* @brief Firmware authenticity verification for the secure bootloader.
|
||||
* @author Kevin Thomas
|
||||
* @date 2026
|
||||
*
|
||||
* MIT License
|
||||
* Copyright (c) 2026 Kevin Thomas
|
||||
*/
|
||||
|
||||
#ifndef VERIFY_H
|
||||
#define VERIFY_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "manifest.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Recompute the CMAC over the application and compare it to the tag.
|
||||
* @param manifest Pointer to the validated manifest.
|
||||
* @return bool True when the tag matches, false otherwise.
|
||||
*/
|
||||
bool verify_manifest(const fw_manifest_t *manifest);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // VERIFY_H
|
||||
Reference in new issue
Block a user