|
79 | 79 | #define APDU_NO_RESPONSE 0x0000 |
80 | 80 | #define APDU_RESPONSE_MODE_CHECK_FAILED 0x6001 |
81 | 81 |
|
82 | | -uint16_t handleGetPublicKey(uint8_t p1, |
83 | | - uint8_t p2, |
84 | | - const uint8_t *dataBuffer, |
85 | | - uint8_t dataLength, |
86 | | - unsigned int *flags, |
87 | | - unsigned int *tx); |
88 | | -uint16_t handleProvideErc20TokenInformation(const uint8_t *workBuffer, |
89 | | - uint8_t dataLength, |
90 | | - unsigned int *tx); |
91 | | -uint16_t handleProvideNFTInformation(const uint8_t *dataBuffer, |
92 | | - uint8_t dataLength, |
93 | | - unsigned int *tx); |
94 | | -uint16_t handleSign(uint8_t p1, |
95 | | - uint8_t p2, |
96 | | - const uint8_t *dataBuffer, |
97 | | - uint8_t dataLength, |
98 | | - unsigned int *flags); |
99 | | -uint16_t handleGetAppConfiguration(unsigned int *tx); |
100 | | -uint16_t handleSignPersonalMessage(uint8_t p1, |
101 | | - const uint8_t *const payload, |
102 | | - uint8_t length, |
103 | | - unsigned int *flags); |
104 | | -uint16_t handleSignEIP712Message_v0(uint8_t p1, |
105 | | - const uint8_t *dataBuffer, |
106 | | - uint8_t dataLength, |
107 | | - unsigned int *flags); |
| 82 | +uint16_t handle_get_public_key(uint8_t p1, |
| 83 | + uint8_t p2, |
| 84 | + const uint8_t *dataBuffer, |
| 85 | + uint8_t dataLength, |
| 86 | + unsigned int *flags, |
| 87 | + unsigned int *tx); |
| 88 | +uint16_t handle_provide_erc20_token_information(const uint8_t *workBuffer, |
| 89 | + uint8_t dataLength, |
| 90 | + unsigned int *tx); |
| 91 | +uint16_t handle_provide_nft_information(const uint8_t *dataBuffer, |
| 92 | + uint8_t dataLength, |
| 93 | + unsigned int *tx); |
| 94 | +uint16_t handle_sign(uint8_t p1, |
| 95 | + uint8_t p2, |
| 96 | + const uint8_t *dataBuffer, |
| 97 | + uint8_t dataLength, |
| 98 | + unsigned int *flags); |
| 99 | +uint16_t handle_get_app_configuration(unsigned int *tx); |
| 100 | +uint16_t handle_sign_personal_message(uint8_t p1, |
| 101 | + const uint8_t *const payload, |
| 102 | + uint8_t length, |
| 103 | + unsigned int *flags); |
| 104 | +uint16_t handle_sign_eip712_message_v0(uint8_t p1, |
| 105 | + const uint8_t *dataBuffer, |
| 106 | + uint8_t dataLength, |
| 107 | + unsigned int *flags); |
108 | 108 |
|
109 | | -uint16_t handleSetExternalPlugin(const uint8_t *workBuffer, uint8_t dataLength); |
| 109 | +uint16_t handle_set_external_plugin(const uint8_t *workBuffer, uint8_t dataLength); |
110 | 110 |
|
111 | | -uint16_t handleSetPlugin(const uint8_t *workBuffer, uint8_t dataLength); |
| 111 | +uint16_t handle_set_plugin(const uint8_t *workBuffer, uint8_t dataLength); |
112 | 112 |
|
113 | | -uint16_t handlePerformPrivacyOperation(uint8_t p1, |
114 | | - uint8_t p2, |
115 | | - const uint8_t *workBuffer, |
116 | | - uint8_t dataLength, |
117 | | - unsigned int *flags, |
118 | | - unsigned int *tx); |
| 113 | +uint16_t handle_perform_privacy_operation(uint8_t p1, |
| 114 | + uint8_t p2, |
| 115 | + const uint8_t *workBuffer, |
| 116 | + uint8_t dataLength, |
| 117 | + unsigned int *flags, |
| 118 | + unsigned int *tx); |
119 | 119 |
|
120 | 120 | #ifdef HAVE_ETH2 |
121 | 121 |
|
122 | | -uint16_t handleGetEth2PublicKey(uint8_t p1, |
123 | | - uint8_t p2, |
124 | | - const uint8_t *dataBuffer, |
125 | | - uint8_t dataLength, |
126 | | - unsigned int *flags, |
127 | | - unsigned int *tx); |
| 122 | +uint16_t handle_get_eth2_public_key(uint8_t p1, |
| 123 | + uint8_t p2, |
| 124 | + const uint8_t *dataBuffer, |
| 125 | + uint8_t dataLength, |
| 126 | + unsigned int *flags, |
| 127 | + unsigned int *tx); |
128 | 128 |
|
129 | 129 | #endif |
130 | 130 |
|
|
0 commit comments