mirror of
https://github.com/polhenarejos/pico-fido.git
synced 2024-09-20 03:10:10 +00:00
Add large blob command to cbor.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
a4d82136c2
commit
aa4255b875
@ -37,6 +37,7 @@ int cbor_selection();
|
|||||||
int cbor_cred_mgmt(const uint8_t *data, size_t len);
|
int cbor_cred_mgmt(const uint8_t *data, size_t len);
|
||||||
int cbor_config(const uint8_t *data, size_t len);
|
int cbor_config(const uint8_t *data, size_t len);
|
||||||
int cbor_vendor(const uint8_t *data, size_t len);
|
int cbor_vendor(const uint8_t *data, size_t len);
|
||||||
|
int cbor_large_blobs(const uint8_t *data, size_t len);
|
||||||
|
|
||||||
const uint8_t aaguid[16] = {0x89, 0xFB, 0x94, 0xB7, 0x06, 0xC9, 0x36, 0x73, 0x9B, 0x7E, 0x30, 0x52, 0x6D, 0x96, 0x81, 0x45}; // First 16 bytes of SHA256("Pico FIDO2")
|
const uint8_t aaguid[16] = {0x89, 0xFB, 0x94, 0xB7, 0x06, 0xC9, 0x36, 0x73, 0x9B, 0x7E, 0x30, 0x52, 0x6D, 0x96, 0x81, 0x45}; // First 16 bytes of SHA256("Pico FIDO2")
|
||||||
|
|
||||||
@ -68,6 +69,8 @@ int cbor_parse(uint8_t cmd, const uint8_t *data, size_t len) {
|
|||||||
return cbor_cred_mgmt(data + 1, len - 1);
|
return cbor_cred_mgmt(data + 1, len - 1);
|
||||||
else if (data[0] == CTAP_CONFIG)
|
else if (data[0] == CTAP_CONFIG)
|
||||||
return cbor_config(data + 1, len - 1);
|
return cbor_config(data + 1, len - 1);
|
||||||
|
else if (data[0] == CTAP_LARGE_BLOBS)
|
||||||
|
return cbor_config(data + 1, len - 1);
|
||||||
}
|
}
|
||||||
else if (cmd == CTAP_VENDOR_CBOR) {
|
else if (cmd == CTAP_VENDOR_CBOR) {
|
||||||
return cbor_vendor(data, len);
|
return cbor_vendor(data, len);
|
||||||
|
@ -114,6 +114,7 @@ typedef struct {
|
|||||||
#define CTAP_GET_NEXT_ASSERTION 0x08
|
#define CTAP_GET_NEXT_ASSERTION 0x08
|
||||||
#define CTAP_CREDENTIAL_MGMT 0x0A
|
#define CTAP_CREDENTIAL_MGMT 0x0A
|
||||||
#define CTAP_SELECTION 0x0B
|
#define CTAP_SELECTION 0x0B
|
||||||
|
#define CTAP_LARGE_BLOBS 0x0C
|
||||||
#define CTAP_CONFIG 0x0D
|
#define CTAP_CONFIG 0x0D
|
||||||
|
|
||||||
#define CTAP_CONFIG_AUT_ENABLE 0x03e43f56b34285e2
|
#define CTAP_CONFIG_AUT_ENABLE 0x03e43f56b34285e2
|
||||||
|
Loading…
Reference in New Issue
Block a user