Commit Graph

  • bfc82d5de4 Reset must be confirmed always. Pol Henarejos 2022-09-23 18:07:05 +02:00
  • d558941311 Credentials now include a flag to mark whether they are resident or not. Pol Henarejos 2022-09-23 17:30:07 +02:00
  • 9fa2c5d39c Display more debug info on error. Pol Henarejos 2022-09-23 17:29:22 +02:00
  • cd66e65b9c Adding ENABLE_POWER_RESET to enable power cycle for reset command. Enabled by default. Pol Henarejos 2022-09-23 16:46:16 +02:00
  • a165d286af Fix returning errors on hmac-secret. Pol Henarejos 2022-09-23 15:17:46 +02:00
  • 9bf40e69af Fix parsing hmac_secret on assertion. Pol Henarejos 2022-09-23 12:03:18 +02:00
  • 71564e0c79 Fix concurrency when loading FIDO. Pol Henarejos 2022-09-23 11:41:28 +02:00
  • be68d5516f Making assertion for U2F. Pol Henarejos 2022-09-23 11:41:07 +02:00
  • 2c4c618e3b Loading credential if it belongs to U2F. Pol Henarejos 2022-09-23 11:40:39 +02:00
  • dd4b52faf3 Fix authenticating MSG from CTAP2 and U2F. Pol Henarejos 2022-09-23 11:03:13 +02:00
  • e94f6843e5 Adding cmake option ENABLE_UP_BUTTON to enable/disable user presence confirmation via button. Enabled by default. Pol Henarejos 2022-09-23 09:21:32 +02:00
  • cbfe66e89b Not necessary scan on every call. Pol Henarejos 2022-09-22 23:56:48 +02:00
  • 883c5fef35 Removing debugs. Pol Henarejos 2022-09-22 23:54:11 +02:00
  • 40110ad602 Fix generating dev cert. Pol Henarejos 2022-09-22 22:52:23 +02:00
  • 61b10b7971 Fix get sign counter. Pol Henarejos 2022-09-22 22:52:10 +02:00
  • 2d496fd8fc Random functions shall be called for each core, otherwise it will hung. Pol Henarejos 2022-09-22 20:18:05 +02:00
  • cc373e3e7e Adding send_keepalive(). Pol Henarejos 2022-09-22 19:25:52 +02:00
  • 4360ab0375 Device key must not be persistent across resets. Pol Henarejos 2022-09-22 19:25:44 +02:00
  • 73c846e985 Credentials are reset on reset, as the device key also changes. Pol Henarejos 2022-09-22 19:25:26 +02:00
  • d95bc1aba6 Reset shall call for user presence and can only be called within the 10 seconds from boot. Pol Henarejos 2022-09-22 19:25:04 +02:00
  • 2d5fffedb9 Fix resetting pin mismatches. Pol Henarejos 2022-09-22 19:24:28 +02:00
  • f045ec8d03 card_init_core1() shall be called from every thread launched on core1. Pol Henarejos 2022-09-22 19:24:07 +02:00
  • e0d8ce7637 Fix encoding credential. Pol Henarejos 2022-09-22 10:24:38 +02:00
  • 86e3c960a4 Fix when no pin is provided. Pol Henarejos 2022-09-22 10:00:06 +02:00
  • 864965c1fe Fix verying when no paut is in use. Pol Henarejos 2022-09-22 09:59:17 +02:00
  • 3b25eb295c Fix get assertion. Pol Henarejos 2022-09-22 09:30:13 +02:00
  • 226fcc5405 Fixing next get assertion. Pol Henarejos 2022-09-21 23:44:47 +02:00
  • 5625e0dacd Adding preliminary support for get next assertion. Pol Henarejos 2022-09-21 20:02:19 +02:00
  • cf206bf158 Credentials CANNOT be regenerated, as they depend on random IV. Pol Henarejos 2022-09-21 19:53:36 +02:00
  • a44227db52 Fix encoding extensions. Pol Henarejos 2022-09-21 19:53:11 +02:00
  • 4ab898378a More fixes Pol Henarejos 2022-09-21 16:30:49 +02:00
  • 99fc76a385 Finalizing get assertion. Pol Henarejos 2022-09-21 14:29:28 +02:00
  • f71624f489 More steps. Pol Henarejos 2022-09-21 00:00:51 +02:00
  • 08c3c3344c Moving up and uv flags to paut. Pol Henarejos 2022-09-21 00:00:25 +02:00
  • 804970e77a Using extensions and fixing up and uv flags. Pol Henarejos 2022-09-21 00:00:10 +02:00
  • c938d47bf7 Adding extensions struct. Pol Henarejos 2022-09-20 23:59:52 +02:00
  • 22a2ea109e Adding unfinished get_assertion. Pol Henarejos 2022-09-20 20:04:54 +02:00
  • 3a3ec97c90 Fix saving creds. Pol Henarejos 2022-09-20 19:56:20 +02:00
  • 8a379d9702 Adding Credential manager. Pol Henarejos 2022-09-20 19:50:33 +02:00
  • 72ebb2b596 Adding Credential management. Pol Henarejos 2022-09-20 17:31:09 +02:00
  • 3dc7af05c1 More fixes. Pol Henarejos 2022-09-20 15:07:48 +02:00
  • a3c60f762d Reorganizing core0/core1 split. Pol Henarejos 2022-09-20 14:39:59 +02:00
  • 8feac76a73 If user has introduced PIN, it is verified. Pol Henarejos 2022-09-20 11:50:45 +02:00
  • f439b85de7 clientPIN passes the first test. Pol Henarejos 2022-09-20 11:38:59 +02:00
  • ee8f3a0965 Adding support for clientPIN. Pol Henarejos 2022-09-19 17:20:52 +02:00
  • 199091e2b9 Adding file debug. Pol Henarejos 2022-09-19 17:20:10 +02:00
  • 24f48e33bb Reset nows flushes the memory storage. Pol Henarejos 2022-09-19 17:20:00 +02:00
  • 479aae2ef9 Adding support for CTAP_2_0 and minPINlength. Pol Henarejos 2022-09-19 17:19:45 +02:00
  • fd7da11931 More fixes. Finally it passes all tests. Pol Henarejos 2022-09-16 17:13:26 +02:00
  • a80247ffa2 Check required parameters in excludeList. Pol Henarejos 2022-09-16 16:27:56 +02:00
  • c9c10eca36 Fix excludeList parsing. Pol Henarejos 2022-09-16 16:23:27 +02:00
  • 11642fe0a3 Fixes with missing parameters. Pol Henarejos 2022-09-16 15:59:20 +02:00
  • a9cb5ee87c More fixes. Pol Henarejos 2022-09-16 12:06:54 +02:00
  • 2c6b14822e Fixed many bugs. It works. Pol Henarejos 2022-09-16 11:19:54 +02:00
  • 1b70c21588 Added macro for windows compilation. Pol Henarejos 2022-09-16 11:19:20 +02:00
  • aa15ad471b Fix order of items. Pol Henarejos 2022-09-16 11:19:08 +02:00
  • 20038b1586 Lots of efforts for make_Credential. Pol Henarejos 2022-09-16 00:50:19 +02:00
  • 5da2af2c34 Accepting curves for key_derivation as a parameter. Pol Henarejos 2022-09-16 00:49:59 +02:00
  • 9b49d39ccc Scan files at the beginning. Pol Henarejos 2022-09-16 00:49:25 +02:00
  • 84a91fcbda Adding known apps. Pol Henarejos 2022-09-16 00:48:58 +02:00
  • 3873303309 Refactor CTAP2 file structure. Pol Henarejos 2022-09-15 14:16:12 +02:00
  • 82b5b1cb96 Moving pointer. Pol Henarejos 2022-09-13 20:37:38 +02:00
  • 1fc8b599ec Fix returned version. Pol Henarejos 2022-09-12 00:47:46 +02:00
  • 4c8242f4c8 Moving CBOR to HID. Pol Henarejos 2022-09-08 20:37:33 +02:00
  • e9ab270dc3 Using new CTAP header. Pol Henarejos 2022-09-08 17:50:16 +02:00
  • 73f88b6882 Moving from U2F to CTAP1. Pol Henarejos 2022-09-08 17:35:56 +02:00
  • 7ae80ab688 Upgrade to v1.2 Pol Henarejos 2022-09-08 16:54:52 +02:00
  • 610bb33cce Upgrading flash tool to latest HSM SDK version. Pol Henarejos 2022-09-08 16:54:41 +02:00
  • bdcca8a913 ADded clarification. Pol Henarejos 2022-09-08 16:50:55 +02:00
  • 858b9c42ee HSM SDK fixes. Pol Henarejos 2022-09-08 16:49:49 +02:00
  • 573cb15e69 Replace some constants with defines. Pol Henarejos 2022-09-08 14:00:05 +02:00
  • a7b8fb829f Fix for HSM SDK. Pol Henarejos 2022-09-08 13:51:26 +02:00
  • a1db7ec1ea Add length check. Pol Henarejos 2022-09-08 13:51:15 +02:00
  • 6025030d58 Moving from HSM SDK to here. Pol Henarejos 2022-09-08 13:50:47 +02:00
  • 4a4911617d Move HSM SDK to v3.2. Pol Henarejos 2022-09-08 13:45:53 +02:00
  • b178b139fb Added user presence flag and global counter on authentication. Pol Henarejos 2022-09-07 20:03:34 +02:00
  • d6c9077b02 More fixes. Pol Henarejos 2022-09-06 22:23:40 +02:00
  • 8a139e70b7 Fix verifying key handle. Pol Henarejos 2022-09-06 21:47:13 +02:00
  • dda5c25e85 Fix computing HMAC of key path. Pol Henarejos 2022-09-06 21:35:23 +02:00
  • 046706058d Added support for user enforcement and key check (P1 0x07, 0x03 and 0x08). Pol Henarejos 2022-09-06 16:54:12 +02:00
  • 694ab2cf87 Fix authentication key_path. Pol Henarejos 2022-09-06 16:53:39 +02:00
  • 6e56874d3e Adding test user presence on authentication. Pol Henarejos 2022-09-06 16:30:01 +02:00
  • 19dce60d76 It requires user to press the button for confirming registration. Pol Henarejos 2022-09-06 16:24:38 +02:00
  • 9bf20175be Adding routine for pressing button to test required user presence. Pol Henarejos 2022-09-06 16:24:21 +02:00
  • 9cbe6d9c33 Fixes Pico HSM SDK Pol Henarejos 2022-09-05 17:30:32 +02:00
  • f7a6ee1a37 Adding msg version. Pol Henarejos 2022-09-05 17:30:17 +02:00
  • 9927b49757 Adding README. Pol Henarejos 2022-09-05 17:06:14 +02:00
  • 819c4eae50 Adding VID/PID patcher. Pol Henarejos 2022-09-05 17:06:03 +02:00
  • 7ca445a4ca Adding version file. Pol Henarejos 2022-09-05 17:05:33 +02:00
  • cf68a6b61f Adding msg authenticate. Pol Henarejos 2022-09-05 16:48:18 +02:00
  • 888a1c92c5 Fix returning APDU. Pol Henarejos 2022-09-05 16:48:01 +02:00
  • 23a9d2de76 Add file last entry. Pol Henarejos 2022-09-05 14:40:31 +02:00
  • 0024b0728b Create DEV CERT if not found. Pol Henarejos 2022-09-05 14:40:12 +02:00
  • 7816f2b588 Added msg_register procedure. Pol Henarejos 2022-09-05 11:31:22 +02:00
  • 99f0cb021a At this moment, no MKEK is necessary. Pol Henarejos 2022-09-05 11:30:58 +02:00
  • ed0a798f63 Instead of generating a new keypair, all keys are derived from the master key. Pol Henarejos 2022-09-05 11:30:49 +02:00
  • 65b14960ce Adding MKEK generation on first scan. Pol Henarejos 2022-09-02 18:36:14 +02:00
  • 6de753447e Adding pico sdk cmake import file. Pol Henarejos 2022-09-02 18:18:01 +02:00
  • 854c0d6225 Adding REGISTER support. NOT WORKING. Pol Henarejos 2022-09-02 18:17:48 +02:00
  • a1d04b5362 Add CMake file Pol Henarejos 2022-09-02 18:17:10 +02:00