Skip to content

Commit 47890a1

Browse files
committed
making crypto code a private lib
1 parent ad40ecc commit 47890a1

File tree

145 files changed

+24
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+24
-21
lines changed

application.fam

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ App(
1111
order=10,
1212
fap_icon="flipbip_10px.png",
1313
fap_icon_assets="icons",
14+
fap_private_libs=[
15+
Lib(
16+
name="crypto",
17+
),
18+
],
1419
fap_category="Misc",
1520
fap_description="Crypto toolkit for Flipper",
1621
fap_author="Struan Clark (xtruan)",

flipbip.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#include "flipbip.h"
2-
#include "crypto/memzero.h"
3-
#include "crypto/bip39.h"
42
#include "helpers/flipbip_file.h"
53
#include "helpers/flipbip_haptic.h"
4+
// From: lib/crypto
5+
#include <memzero.h>
6+
#include <bip39.h>
67

78
bool flipbip_custom_event_callback(void* context, uint32_t event) {
89
furi_assert(context);

helpers/flipbip_file.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
#include "flipbip_file.h"
2-
#include "../helpers/flipbip_string.h"
3-
4-
#include "../crypto/memzero.h"
5-
#include "../crypto/rand.h"
6-
72
#include <storage/storage.h>
3+
#include "../helpers/flipbip_string.h"
4+
// From: lib/crypto
5+
#include <memzero.h>
6+
#include <rand.h>
87

98
#define FLIPBIP_APP_BASE_FOLDER EXT_PATH("apps_data/flipbip")
109
#define FLIPBIP_DAT_FILE_NAME ".flipbip.dat"

helpers/flipbip_led.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
2-
31
void flipbip_led_set_rgb(void* context, int red, int green, int blue);
4-
52
void flipbip_led_reset(void* context);

helpers/flipbip_string.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
#include <ctype.h>
3131
#include <stdint.h>
3232
#include <string.h>
33-
34-
#include "../crypto/memzero.h"
35-
#include "../crypto/rc4.h"
33+
// From: lib/crypto
34+
#include <memzero.h>
35+
#include <rc4.h>
3636

3737
char* flipbip_strtok(char* s, const char* delim) {
3838
static char* last;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)