Skip to content

Commit f36bebc

Browse files
committed
Merge pull request #283
83ec9d3 update unit tests (douglasbakkum) 269b532 async command processing for hijack mode (douglasbakkum) 3c548fd refactor naming 'send' -> 'queue' where more accurate (douglasbakkum) eefda0f u2f.c: adopt v2 `_` notation for static var/func (douglasbakkum) 2edc3ec u2f hijack bugfix: empty return frame when need more data (douglasbakkum)
2 parents e99b1e4 + 83ec9d3 commit f36bebc

File tree

6 files changed

+262
-180
lines changed

6 files changed

+262
-180
lines changed

src/u2f/u2f.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#define U2F_MAX_ATT_CERT_SIZE 1024 // Max size of attestation certificate
2121
#define U2F_MAX_EC_SIG_SIZE 72 // Max size of ANS.1 DER encoded EC signature
2222
#define U2F_CTR_SIZE 4 // Size of counter field
23+
#define U2F_FRAME_SIZE (3 + U2F_CTR_SIZE)// 1-byte flag | 4-byte counter | 2-byte status
2324
#define U2F_APPID_SIZE 32 // Size of application id
2425
#define U2F_NONCE_LENGTH 32 // Size of challenge nonce
2526
#define U2F_UNCOMPRESSED_POINT 0x04 // Uncompressed point format

0 commit comments

Comments
 (0)