pin auth working
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
// op: 0x10
|
||||
// authType: 0x00 //sign?
|
||||
// reserved: 0x00 // mbedtls signature alg identifier
|
||||
// pinAuth: data[16]
|
||||
// challenge-length: 1-255
|
||||
// challenge: data[1-255]
|
||||
// keyID-length: 1-255
|
||||
@@ -53,13 +54,25 @@
|
||||
// Returns public key OR pinAuth
|
||||
|
||||
|
||||
#define MAX_CHALLENGE_SIZE 233
|
||||
#define MAX_KEYID_SIZE 232
|
||||
|
||||
#define MAX_PAYLOAD_SIZE (255 - 16 - 4)
|
||||
|
||||
typedef struct
|
||||
{
|
||||
uint8_t operation;
|
||||
uint8_t authType;
|
||||
uint8_t keyType;
|
||||
} wallet_request;
|
||||
uint8_t operation;
|
||||
uint8_t p1;
|
||||
uint8_t p2;
|
||||
uint8_t numArgs;
|
||||
uint8_t pinAuth[16];
|
||||
uint8_t payload[MAX_PAYLOAD_SIZE];
|
||||
}__attribute__((packed)) wallet_request;
|
||||
|
||||
|
||||
|
||||
int16_t bridge_u2f_to_wallet(uint8_t * chal, uint8_t * appid, uint8_t klen, uint8_t * keyh);
|
||||
|
||||
void wallet_init();
|
||||
|
||||
#endif /* WALLET_H_ */
|
||||
|
Reference in New Issue
Block a user