File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 1
1
#include "apdu_constants.h"
2
2
#include "public_keys.h"
3
- #ifdef HAVE_LEDGER_PKI
4
- #include "os_pki.h"
5
- #endif
6
3
7
4
#define KEY_USAGE_STR (x ) \
8
5
(x == CERTIFICATE_PUBLIC_KEY_USAGE_GENUINE_CHECK ? "GENUINE_CHECK" \
Original file line number Diff line number Diff line change 16
16
********************************************************************************/
17
17
18
18
#pragma once
19
+
19
20
#include <stdint.h>
21
+ #ifdef HAVE_LEDGER_PKI
22
+ #include "os_pki.h"
23
+ #endif
20
24
21
25
static const uint8_t LEDGER_SIGNATURE_PUBLIC_KEY [] = {
22
26
#if defined(HAVE_CAL_TEST_KEY )
@@ -105,13 +109,13 @@ static const uint8_t LEDGER_NFT_SELECTOR_PUBLIC_KEY[] = {
105
109
#endif
106
110
};
107
111
108
- extern int check_signature_with_pubkey (const char * tag ,
109
- uint8_t * buffer ,
110
- const uint8_t bufLen ,
111
- const uint8_t * PubKey ,
112
- const uint8_t keyLen ,
112
+ int check_signature_with_pubkey (const char * tag ,
113
+ uint8_t * buffer ,
114
+ const uint8_t bufLen ,
115
+ const uint8_t * PubKey ,
116
+ const uint8_t keyLen ,
113
117
#ifdef HAVE_LEDGER_PKI
114
- const uint8_t keyUsageExp ,
118
+ const uint8_t keyUsageExp ,
115
119
#endif
116
- uint8_t * signature ,
117
- const uint8_t sigLen );
120
+ uint8_t * signature ,
121
+ const uint8_t sigLen );
You can’t perform that action at this time.
0 commit comments