Commit Graph

  • 9ac4ebdaed Fix emulation write offset. Pol Henarejos 2024-08-25 20:57:22 +02:00
  • 85be276915 Fix ccid write with offset. Pol Henarejos 2024-08-25 20:57:00 +02:00
  • 956f476872 Fix emulation build without HID. Pol Henarejos 2024-08-25 18:29:51 +02:00
  • ac2a6c1052 Init low flash in core1 in emulation mode. Pol Henarejos 2024-08-25 00:11:10 +02:00
  • e333383a22 Do not use mbedtls crt_dbrg as it it not reliable. Pol Henarejos 2024-08-25 00:10:53 +02:00
  • 7702401caa Do not use pthread_cancel. Instead use EV_EXIT. Pol Henarejos 2024-08-24 23:44:32 +02:00
  • 7a88a2b8e7 Improved multicore synchronization. Now they exchange signals and protect areas atomically. Pol Henarejos 2024-08-23 19:24:18 +02:00
  • 90842bb8f7 Fix emulation build. Pol Henarejos 2024-08-23 14:24:17 +02:00
  • 65fea84df1 Fix warnings. Pol Henarejos 2024-08-23 13:17:10 +02:00
  • b4487892a2 Fix windows build. Pol Henarejos 2024-08-23 13:17:00 +02:00
  • fa6292118d Major refactor of USB CCID and USB HID interfaces. All interfaces are rewritten. Pol Henarejos 2024-08-23 10:02:19 +02:00
  • 0745838e3f Fix when receiving a packet in the middle of a transmission. RX shall be always processed. Pol Henarejos 2024-08-20 16:39:44 +02:00
  • e1dd57067e Fix when a keepalive packet collides with an ongoing transmission. Pol Henarejos 2024-08-20 16:39:08 +02:00
  • 38f0e2cc3a select_app now invokes U2F or FIDO depending on the message. Pol Henarejos 2024-08-20 14:29:11 +02:00
  • c1571c02f8 Increase vStack depending on the number of interfaces. Pol Henarejos 2024-08-20 12:43:01 +02:00
  • d379a39bd6 keepalive should be sent without conditions and without reseting any buffer. Pol Henarejos 2024-08-19 16:44:58 +02:00
  • 7c76a71f33 Fix emulation build. Pol Henarejos 2024-08-19 13:18:03 +02:00
  • 93c491d72c Fix thread cancel in ESP32. Pol Henarejos 2024-08-19 00:07:19 +02:00
  • e2bd7fc50f Add tinycbor to ESP32 build. Pol Henarejos 2024-08-19 00:06:49 +02:00
  • 11447371fe Rewritten continuous flow for HID. Pol Henarejos 2024-08-19 00:06:24 +02:00
  • 4e6ebc5c2a TinyUSB uses interface argument for that driver. Therefore, for vendord driver, interface starts at 0, even the HID interface is used. Pol Henarejos 2024-08-19 00:03:30 +02:00
  • 8fdd1a2305 Add usb.h declarations. Pol Henarejos 2024-08-19 00:02:32 +02:00
  • 0f24d17456 thread management is now in usb stuff. It ensures to launch an apdu/cbor thread depending on the processed packet. Pol Henarejos 2024-08-19 00:01:30 +02:00
  • c9df3c22a0 driver_exec_finished_cont_hid() now accepts an itf argument. Pol Henarejos 2024-08-19 00:00:46 +02:00
  • b3dbee5cd6 Increase vStack of core0 of ESP32. Pol Henarejos 2024-08-18 23:43:54 +02:00
  • aad1387052 Increase vStack in core1 of ESP32. Pol Henarejos 2024-08-18 23:43:32 +02:00
  • f4ad8e1af2 Fix idVendor, idProduct allocation for Pico Patcher. Pol Henarejos 2024-07-15 14:41:08 +02:00
  • 7e8807e054 Fix potential infinite loop when bad ASN1 is processed. Pol Henarejos 2024-07-08 10:53:19 +02:00
  • eca200d2f1 Fix EF.DIR selection. Pol Henarejos 2024-06-28 22:04:52 +02:00
  • 5c11db54ae BCD must be 2.0 for compatibility with windows. Pol Henarejos 2024-06-27 21:01:22 +02:00
  • 01d1de6074 Upgrade Pico Keys SDK to v6.0 Pol Henarejos 2024-06-22 20:56:03 +02:00
  • 447c68febd Fix potential overflow. Pol Henarejos 2024-06-22 19:03:37 +02:00
  • 2700163e1f Better use phy opt mask. Pol Henarejos 2024-06-21 22:08:16 +02:00
  • 246ed5cf19 Fix when setting options and taking VIDPID values. Pol Henarejos 2024-06-21 22:07:28 +02:00
  • f8480291fe Upgrade to Mbedtls 3.6 Pol Henarejos 2024-06-21 21:29:14 +02:00
  • a3ff9ba697 Merge pull request #2 from al-heisner/main Pol Henarejos 2024-06-21 18:57:51 +02:00
  • e920bff3f4 Change total flash pages (needed for pico-hsm) al heisner 2024-06-21 11:41:02 -05:00
  • 218441a45a Added support for enable/disable Web CCID on the fly. Pol Henarejos 2024-06-19 23:28:55 +02:00
  • a0e55ebfae Fix tusb initialization. Pol Henarejos 2024-06-19 22:30:07 +02:00
  • 59597a0a68 Merge branch 'esp32' Pol Henarejos 2024-06-19 22:01:46 +02:00
  • d458250887 Add PHY options and PHY_WCID. Pol Henarejos 2024-06-19 22:00:55 +02:00
  • 9a607707f0 Merge branch 'main' into esp32 Pol Henarejos 2024-05-31 17:12:12 +02:00
  • e4e43dae04 Build x509 suite always if necessary. Pol Henarejos 2024-05-23 18:40:01 +02:00
  • 88071e1172 Some fixes. Pol Henarejos 2024-05-05 00:56:51 +02:00
  • af20b4f894 Merge branch 'main' into esp32 Pol Henarejos 2024-04-28 19:26:08 +02:00
  • f0074e5367 CCID and WCID structs not used. Pol Henarejos 2024-04-22 23:35:19 +02:00
  • 0535138211 Only T=1 protocol is supported. Pol Henarejos 2024-04-21 22:52:16 +02:00
  • a5f19a1356 Only T=1 protocol is supported. Pol Henarejos 2024-04-21 22:51:17 +02:00
  • ef196bf10b Use new methods search_file() and file_put_data(). Pol Henarejos 2024-04-17 16:36:15 +02:00
  • fc5f4299cc Fix emulation build. Pol Henarejos 2024-04-17 11:56:54 +02:00
  • 6f2721aba3 Use persistent memory for storing dynamic VID/PID. Pol Henarejos 2024-04-17 11:42:57 +02:00
  • cf1e076453 Introducing EF_PHY to store PHY (VIDPID and LED no.). Pol Henarejos 2024-04-17 11:40:01 +02:00
  • 22d4e62952 Add procedure to compute unique ID at startup. Pol Henarejos 2024-04-17 11:31:11 +02:00
  • 019c5929a2 Remove carriage return \r for better debug. Pol Henarejos 2024-04-17 11:21:10 +02:00
  • ade730ffb5 Introducing EF_PHY to store PHY (VIDPID and LED no.). Pol Henarejos 2024-04-16 23:22:11 +02:00
  • afc71f6942 Moving EF_VP to more generic EF_PHY, which stores PHY aspects from the chip. Pol Henarejos 2024-04-16 16:24:05 +02:00
  • 7b35000e11 Use persistent memory for storing dynamic VID/PID. Pol Henarejos 2024-04-16 16:18:28 +02:00
  • 6f7ab69a9d Added support for dynamic USB_VID / USB_PID. Pol Henarejos 2024-04-16 00:04:23 +02:00
  • b6b53010cc Fix build for emulated interface. Pol Henarejos 2024-04-16 00:03:43 +02:00
  • 8d86a8c56b Add procedure to compute unique ID at startup. Pol Henarejos 2024-04-15 23:44:51 +02:00
  • a7be923783 ITF WCID can be compiled separately. Pol Henarejos 2024-04-15 23:44:12 +02:00
  • 10ab0d561c Upate build parameters. Pol Henarejos 2024-04-11 15:15:18 +02:00
  • 7def35f87c Remove carriage return \r for better debug. Pol Henarejos 2024-04-10 18:16:38 +02:00
  • 6adfe4344f When flash is written, map must be reopened. Pol Henarejos 2024-04-10 18:16:05 +02:00
  • ab1b245f4f Fix write & read to flash partition. Pol Henarejos 2024-04-09 19:58:33 +02:00
  • 1ba109bd0a Fix TUSB definition. Pol Henarejos 2024-04-08 19:38:42 +02:00
  • 06fd241f49 Second round to make it work for ESP32S3. Pol Henarejos 2024-04-08 16:47:16 +02:00
  • 49f05e9e13 Now it builds the image. Pol Henarejos 2024-04-05 17:57:56 +02:00
  • 023039deb2 Attempting to add support to esp32s3. Pol Henarejos 2024-04-04 21:01:55 +02:00
  • 3d0a27c834 Add 3DES support. Pol Henarejos 2024-03-25 13:25:29 +01:00
  • c0652ba1f7 Fix chained responses in other interfaces. Pol Henarejos 2024-03-21 22:02:01 +01:00
  • b353beaaf8 Fixed chained response. Pol Henarejos 2024-03-20 00:07:00 +01:00
  • b034a6c2d3 Added support for APDU chaining. Pol Henarejos 2024-03-19 18:55:09 +01:00
  • 151ae5fae4 Fix stupid bug initializing asn1 struct. Pol Henarejos 2024-03-13 21:19:02 +01:00
  • e055d4cfc9 Added support for WebCCID. Pol Henarejos 2024-03-13 17:24:10 +01:00
  • 9fdae7ef31 Fix HID compilation with new sizes. Pol Henarejos 2024-01-16 23:51:02 +01:00
  • f88e786c04 Changed ASN1 calls for easier calls. Pol Henarejos 2024-03-13 17:16:35 +01:00
  • caddf87c23 Fix Windows emulation build. Pol Henarejos 2024-01-09 11:43:47 +01:00
  • 29837e5691 Fix Pico build. Pol Henarejos 2024-01-02 20:43:15 +01:00
  • 63a2546166 Fix CodeQL build. Pol Henarejos 2024-01-02 20:36:48 +01:00
  • 5ea372f01c Fix LE computation in a wrapped APDU. Pol Henarejos 2024-01-02 19:57:46 +01:00
  • 8476316e21 Fix wrapped RAPDU always returns 0x9000. Pol Henarejos 2024-01-02 19:57:22 +01:00
  • bbc06efe67 Fix byte overwrite for long chained RAPDU. Pol Henarejos 2024-01-02 01:58:09 +01:00
  • b4f71beaf0 Fix SM verification for long messages. Pol Henarejos 2024-01-02 01:57:55 +01:00
  • a2bc4b6be9 Fix byte overwrite for long chained RAPDU. Pol Henarejos 2024-01-02 01:57:39 +01:00
  • c9b830baa3 Fix chaining long APDU. Pol Henarejos 2024-01-02 01:27:30 +01:00
  • 22c9b7321b Fix SM wrap for large RAPDU. Pol Henarejos 2024-01-02 01:03:51 +01:00
  • 823c1d53ea Try to fix CodeQL build. Pol Henarejos 2024-01-01 21:08:21 +01:00
  • b663f5bebf Some fixes for emulation. Pol Henarejos 2024-01-01 20:56:36 +01:00
  • a9dc6fd7f8 Added support for building emulation in Windows. Pol Henarejos 2024-01-01 01:54:49 +01:00
  • adf53b4231 Fix ATR overwrite. Pol Henarejos 2023-12-29 19:07:02 +01:00
  • 4d77ca7b75 Add -DVIDPID=<VALUE> to build a project with a known VID/PID. Supported values: NitroHSM, NitroFIDO2, NitroStart, NitroPro, Nitro3, Yubikey5, YubikeyNeo, YubiHSM, Gnuk, GnuPG Pol Henarejos 2023-12-11 18:12:38 +01:00
  • 30f86afe6d Fix build emulation in apple. Pol Henarejos 2023-11-11 21:18:53 +01:00
  • f0687c1ef3 Upgrade to version 5.0 v5.0 Pol Henarejos 2023-11-06 17:23:52 +01:00
  • 6069911be0 Fix cmac.c build. Pol Henarejos 2023-11-06 16:55:20 +01:00
  • 0faa01acfe Upgrade to mbedtls 3.5. Pol Henarejos 2023-11-06 16:40:49 +01:00
  • 09276f7117 Rename files to new names. Pol Henarejos 2023-11-06 13:32:39 +01:00
  • d0dc786f74 Rename project to Pico Keys SDK to avoid confusions with Pico Fido and Pico OpenPGP. Pol Henarejos 2023-11-06 13:32:28 +01:00
  • de3f5f0bce Update CMake file for standalone build. Pol Henarejos 2023-11-06 11:50:43 +01:00
  • 899a7ed609 Move some functions from HID to fido callbacks. Pol Henarejos 2023-11-06 13:01:10 +01:00