refactor: Entire code base, thread and log usage

Boils down to:
- Include headers
- Reduce boiler plate with helpers
- Swap out explicit usages with core API layer
  and ensure the right API is configured beforehand
This commit is contained in:
icex2
2024-08-14 17:53:51 +02:00
parent 82d1a2df52
commit 93e0a090bc
338 changed files with 1307 additions and 641 deletions
+2 -1
View File
@@ -1,9 +1,10 @@
#include <string.h>
#include "core/log.h"
#include "security/id.h"
#include "util/hex.h"
#include "util/log.h"
#include "util/mem.h"
const struct security_id security_id_default = {
+2 -1
View File
@@ -1,8 +1,9 @@
#include <string.h>
#include "core/log.h"
#include "security/mcode.h"
#include "util/log.h"
#include "util/mem.h"
const struct security_mcode security_mcode_eamuse = {
+2 -2
View File
@@ -1,10 +1,10 @@
#include <stdbool.h>
#include "core/log.h"
#include "security/rp-blowfish-table.h"
#include "security/rp-blowfish.h"
#include "util/log.h"
static int security_rp_blowfish_enc_sub(int a1)
{
int result; // eax@1
+2 -1
View File
@@ -1,3 +1,5 @@
#include "core/log.h"
#include "security/rp.h"
#include "security/rp-blowfish.h"
@@ -5,7 +7,6 @@
#include "security/util.h"
#include "util/crypto.h"
#include "util/log.h"
static uint32_t security_rp_get_len_mcode(const struct security_mcode *mcode)
{
+2 -1
View File
@@ -1,11 +1,12 @@
#include <string.h>
#include "core/log.h"
#include "security/rp-util.h"
#include "security/rp2.h"
#include "security/util.h"
#include "util/crypto.h"
#include "util/log.h"
static uint8_t security_rp2_signature_scramble_table[16] = {
0x0C,
+2 -1
View File
@@ -1,12 +1,13 @@
#include <string.h>
#include "core/log.h"
#include "security/rp-util.h"
#include "security/rp2.h"
#include "security/rp3.h"
#include "security/util.h"
#include "util/crc.h"
#include "util/log.h"
void security_rp3_generate_signed_eeprom_data(
enum security_rp_util_rp_type type,