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:
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user