Hide onboard crypto tests behind a reserved ctaphid command

This commit is contained in:
Nicolas Stalder
2019-02-27 02:58:56 +01:00
parent 47aa287480
commit 5e70c11b54
3 changed files with 141 additions and 3 deletions

View File

@@ -28,8 +28,8 @@
#define CTAPHID_ENTERBOOT (TYPE_INIT | 0x51)
#define CTAPHID_ENTERSTBOOT (TYPE_INIT | 0x52)
#define CTAPHID_GETRNG (TYPE_INIT | 0x60)
#define CTAPHID_SHA256 (TYPE_INIT | 0x70) // not implemented
#define CTAPHID_SHA512 (TYPE_INIT | 0x71)
// reserved for debug, not implemented except for HACKER and DEBUG_LEVEl > 0
#define CTAPHID_PROBE (TYPE_INIT | 0x70)
#define ERR_INVALID_CMD 0x01
#define ERR_INVALID_PAR 0x02