[FL-3690] Libraries cleanup; u2f crypto rework to use mbedtls (#3234)
* examples: plugins: utilize fal_embedded * libs: removed fnv1a_hash * furi: added FURI_PACKED; apps, libs: changed to use FURI_PACKED * lib: mbedtls: using custom config * lib: toolbox: removed md5, switched to mbedtls * targets: f18: link fix * lib: added mbedtls_cfg.h * apps: nfc: explicit dependency on libmbedtls * u2f: reworking to mbedtls * u2f: replaced sha256 & hmac with mbedtls * u2f: functional rework using mbedtls * libs: dropped micro-ecc * u2f: dropped old implementation * toolbox: removed sha256 impl * mcheck() for mbedtls * libs: removed libmisc; split into smaller libs * apps: debug: fixed display_test * apps: include cleanups * fbt: fixed VERSIONCOMSTR * furi: added FURI_CHECK_RETURN * lib: removed qrcode * cleanup * fbt: lint_py+format_py: fixed excessive command length * api: Removed bzero from f7 * api: Removed bzero from f18 * Bump API Symbols Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
This commit is contained in:
co-authored by
Aleksandr Kutuzov
parent
a849d49c92
commit
890c9e87ce
@@ -4,6 +4,9 @@ env.Append(
|
||||
CPPPATH=[
|
||||
"#/lib/nfc",
|
||||
],
|
||||
LINT_SOURCES=[
|
||||
Dir("."),
|
||||
],
|
||||
SDK_HEADERS=[
|
||||
# Main
|
||||
File("nfc.h"),
|
||||
|
||||
@@ -56,7 +56,7 @@ bool mf_desfire_version_parse(MfDesfireVersion* data, const BitBuffer* buf) {
|
||||
}
|
||||
|
||||
bool mf_desfire_free_memory_parse(MfDesfireFreeMemory* data, const BitBuffer* buf) {
|
||||
typedef struct __attribute__((packed)) {
|
||||
typedef struct FURI_PACKED {
|
||||
uint32_t bytes_free : 3 * BITS_IN_BYTE;
|
||||
} MfDesfireFreeMemoryLayout;
|
||||
|
||||
@@ -74,7 +74,7 @@ bool mf_desfire_free_memory_parse(MfDesfireFreeMemory* data, const BitBuffer* bu
|
||||
}
|
||||
|
||||
bool mf_desfire_key_settings_parse(MfDesfireKeySettings* data, const BitBuffer* buf) {
|
||||
typedef struct __attribute__((packed)) {
|
||||
typedef struct FURI_PACKED {
|
||||
bool is_master_key_changeable : 1;
|
||||
bool is_free_directory_list : 1;
|
||||
bool is_free_create_delete : 1;
|
||||
@@ -143,30 +143,30 @@ bool mf_desfire_file_id_parse(MfDesfireFileId* data, uint32_t index, const BitBu
|
||||
bool mf_desfire_file_settings_parse(MfDesfireFileSettings* data, const BitBuffer* buf) {
|
||||
bool parsed = false;
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
typedef struct FURI_PACKED {
|
||||
uint8_t type;
|
||||
uint8_t comm;
|
||||
uint16_t access_rights;
|
||||
} MfDesfireFileSettingsHeader;
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
typedef struct FURI_PACKED {
|
||||
uint32_t size : 3 * BITS_IN_BYTE;
|
||||
} MfDesfireFileSettingsData;
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
typedef struct FURI_PACKED {
|
||||
uint32_t lo_limit;
|
||||
uint32_t hi_limit;
|
||||
uint32_t limited_credit_value;
|
||||
uint8_t limited_credit_enabled;
|
||||
} MfDesfireFileSettingsValue;
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
typedef struct FURI_PACKED {
|
||||
uint32_t size : 3 * BITS_IN_BYTE;
|
||||
uint32_t max : 3 * BITS_IN_BYTE;
|
||||
uint32_t cur : 3 * BITS_IN_BYTE;
|
||||
} MfDesfireFileSettingsRecord;
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
typedef struct FURI_PACKED {
|
||||
MfDesfireFileSettingsHeader header;
|
||||
union {
|
||||
MfDesfireFileSettingsData data;
|
||||
|
||||
@@ -130,7 +130,7 @@ typedef enum {
|
||||
MfUltralightMirrorUidCounter,
|
||||
} MfUltralightMirrorConf;
|
||||
|
||||
typedef struct __attribute__((packed)) {
|
||||
typedef struct FURI_PACKED {
|
||||
union {
|
||||
uint8_t value;
|
||||
struct {
|
||||
|
||||
Reference in New Issue
Block a user