diff options
Diffstat (limited to 'src/fido/param.h')
-rw-r--r-- | src/fido/param.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/fido/param.h b/src/fido/param.h index 7d3c0cc..14ee74e 100644 --- a/src/fido/param.h +++ b/src/fido/param.h | |||
@@ -50,8 +50,14 @@ | |||
50 | /* HID Broadcast channel ID. */ | 50 | /* HID Broadcast channel ID. */ |
51 | #define CTAP_CID_BROADCAST 0xffffffff | 51 | #define CTAP_CID_BROADCAST 0xffffffff |
52 | 52 | ||
53 | /* Expected size of a HID report in bytes. */ | 53 | #define CTAP_INIT_HEADER_LEN 7 |
54 | #define CTAP_RPT_SIZE 64 | 54 | #define CTAP_CONT_HEADER_LEN 5 |
55 | |||
56 | /* Maximum length of a CTAP HID report in bytes. */ | ||
57 | #define CTAP_MAX_REPORT_LEN 64 | ||
58 | |||
59 | /* Minimum length of a CTAP HID report in bytes. */ | ||
60 | #define CTAP_MIN_REPORT_LEN (CTAP_INIT_HEADER_LEN + 1) | ||
55 | 61 | ||
56 | /* Randomness device on UNIX-like platforms. */ | 62 | /* Randomness device on UNIX-like platforms. */ |
57 | #ifndef FIDO_RANDOM_DEV | 63 | #ifndef FIDO_RANDOM_DEV |
@@ -60,7 +66,7 @@ | |||
60 | 66 | ||
61 | /* Maximum message size in bytes. */ | 67 | /* Maximum message size in bytes. */ |
62 | #ifndef FIDO_MAXMSG | 68 | #ifndef FIDO_MAXMSG |
63 | #define FIDO_MAXMSG 1200 | 69 | #define FIDO_MAXMSG 2048 |
64 | #endif | 70 | #endif |
65 | 71 | ||
66 | /* CTAP capability bits. */ | 72 | /* CTAP capability bits. */ |