mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-18 19:01:47 +03:00
66f9d946ae
* FuriHal: crypto layer * Furi: add crash routine. * FuriHal: crypto api. Crypto: cli command to manipulate secure enclave and encrypt/decrypt plain text. * DeviceInfo: secure enclave verification. * Rename original to enclave_valid * Update expected enclave signature to match production keys * F7: remove unused files
23 lines
489 B
C
23 lines
489 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/** Check condition and crash if check failed */
|
|
#define furi_check(__e) ((__e) ? (void)0 : furi_crash("fury_check failed\r\n"))
|
|
|
|
/** Only in debug build: Assert condition and crash if assert failed */
|
|
#ifdef NDEBUG
|
|
#define furi_assert(__e) ((void)0)
|
|
#else
|
|
#define furi_assert(__e) ((__e) ? (void)0 : furi_crash("furi_assert failed\r\n"))
|
|
#endif
|
|
|
|
/** Crash system */
|
|
void furi_crash(const char* message);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|