Commit Graph

  • d253889747 Use get_version_major and get_version_minor as pointers. Pol Henarejos 2023-11-06 11:57:09 +01:00
  • c9cb330a07 Move some OTP functions from HID to OTP. Pol Henarejos 2023-11-06 11:49:18 +01:00
  • d580194030 Fix reading OTP packets from HID interface. Pol Henarejos 2023-10-31 17:34:09 +01:00
  • 0663c694ef Move timers. Pol Henarejos 2023-10-31 17:33:47 +01:00
  • 81fcd2ced7 Go back 1 second wait Pol Henarejos 2023-10-31 17:33:34 +01:00
  • 3182d1e2e6 Fixed potential crash. Pol Henarejos 2023-10-31 00:40:38 +01:00
  • 4f0925420b Fix HID version. Pol Henarejos 2023-10-28 20:51:18 +02:00
  • c896741114 Report descriptor shall contain FEATURE report too for Windows compatibility. Pol Henarejos 2023-10-28 20:32:31 +02:00
  • f801f73f72 Report ID for keyboard shall be 0. Pol Henarejos 2023-10-28 20:32:04 +02:00
  • 4b099c9d1e Call select AID if selected. Pol Henarejos 2023-10-12 17:40:49 +02:00
  • 1b5a7496e1 Only accept those applets that load successfully. Pol Henarejos 2023-10-11 21:04:45 +02:00
  • eef2f190f2 New format for applet selection. Pol Henarejos 2023-10-11 21:02:04 +02:00
  • dbfb89f959 Add plaintext debug payload. Pol Henarejos 2023-10-11 12:12:41 +02:00
  • 42dcdd3372 Fix when chunking Pol Henarejos 2023-09-24 10:29:49 +02:00
  • a35ba063c4 Add cyw43 lib only for pico_w board. Pol Henarejos 2023-09-18 10:39:00 +02:00
  • 10a9511358 Added support for LED in Pico W. Pol Henarejos 2023-09-18 10:12:12 +02:00
  • 910b2fb75a Added NO_DELAY in emulation env. Pol Henarejos 2023-09-05 18:14:18 +02:00
  • 81a598f464 Revert "Fixed chained response." Pol Henarejos 2023-08-22 17:18:36 +02:00
  • a36a89cc95 If an applet is not selected, it returns NOT_FOUND on every command. Pol Henarejos 2023-08-18 12:25:40 +02:00
  • e84258c434 Fixed chained response. Pol Henarejos 2023-08-16 19:19:50 +02:00
  • 4cfbc19aa7 Added support for Ripemd160. Pol Henarejos 2023-05-23 20:38:54 +02:00
  • c7849e0bda Added support to Nitrokey's nitropy tool. Pol Henarejos 2023-05-15 19:10:25 +02:00
  • 579178ac56 Upgrade to mbedtls 3.4 Pol Henarejos 2023-05-10 00:17:19 +02:00
  • 38283f588d Fix particular case where an EF has masked types. Pol Henarejos 2023-04-27 11:43:20 +02:00
  • 46e7d3a181 Fix otp processing if other applications were processed before. Pol Henarejos 2023-03-31 00:41:12 +02:00
  • f636085dbf Fix potential freeze. Pol Henarejos 2023-03-31 00:40:37 +02:00
  • 38fb8018e6 Add extern crc. Pol Henarejos 2023-03-30 23:44:21 +02:00
  • 3947b59881 Add fix for emulation conditional build. Pol Henarejos 2023-03-30 01:04:11 +02:00
  • 94f9f2fdac Add bool header. Pol Henarejos 2023-03-30 00:57:41 +02:00
  • 630da663c4 Added support for APPEND_CR. Pol Henarejos 2023-03-30 00:51:49 +02:00
  • ef0fb29f29 Added encoding support for keyboard hid. Pol Henarejos 2023-03-30 00:37:07 +02:00
  • c11d403f12 Added support for OTP interface. Pol Henarejos 2023-03-28 23:32:43 +02:00
  • c6d08ae139 Fix conditional build for WS2812. Pol Henarejos 2023-03-26 20:15:38 +02:00
  • b12e66a057 Added support for AES 512 bit keys (for XTS). Pol Henarejos 2023-03-19 20:00:59 +01:00
  • ec9eb7c436 Fix race condition. Pol Henarejos 2023-03-14 09:57:50 +01:00
  • be03298832 Fix potential crash on delete file. Pol Henarejos 2023-03-09 18:16:18 +01:00
  • 599e5edbd1 Fix conditional interface compilation. Pol Henarejos 2023-03-04 14:16:45 +01:00
  • 15569ab419 Update code style. Pol Henarejos 2023-03-04 14:10:46 +01:00
  • 3b268a33eb Sending keepalive on cbor processing. Pol Henarejos 2023-03-03 00:50:13 +01:00
  • 86613453ae Sending timeout command. Pol Henarejos 2023-03-03 00:48:42 +01:00
  • 96f2dab74b Fix init_cmd channel. Pol Henarejos 2023-03-03 00:22:45 +01:00
  • 8f8134efbc Fix preparing rdata pointer with emulated HID. Pol Henarejos 2023-03-03 00:05:05 +01:00
  • b96e853e6d Added support for Fido emulation to automatize tests. Pol Henarejos 2023-03-02 22:05:04 +01:00
  • 455bc17a74 Added support for Waveshare RP2040 zero. Pol Henarejos 2023-03-01 23:32:42 +01:00
  • 16b4fa6ca3 Emulation is now a higher define which also accepts interfaces. Pol Henarejos 2023-02-23 07:57:35 +01:00
  • e5e5af634c Fix endianness of CCID. Pol Henarejos 2023-02-20 16:17:16 +01:00
  • 2471b3308b Adding support for CCID GET, SET and RESET PARAMS. Pol Henarejos 2023-02-20 13:16:46 +01:00
  • e44fde509b Added support for Interrupt endpoint. Pol Henarejos 2023-02-17 19:43:26 +01:00
  • fc40588547 Fixes for FIDO with Pico SDK 1.5 Pol Henarejos 2023-02-17 11:49:09 +01:00
  • 47fab18f96 Enabling entropy and ctr_drbg for emulation mode. Pol Henarejos 2023-02-16 23:41:43 +01:00
  • 1e1e49010a Upgrade to mbedtls v3.3.0 Pol Henarejos 2023-02-16 23:33:13 +01:00
  • 2d486adadb mbed_config file is now specified via command line to avoid copying to includedir. Pol Henarejos 2023-02-16 23:26:21 +01:00
  • 1a3db6b667 Update mbedtls_config.h. Pol Henarejos 2023-02-16 23:25:37 +01:00
  • e47c5412cf Fixes for Pico SDK 1.5 Pol Henarejos 2023-02-16 22:54:30 +01:00
  • 4708ae3d99 Add APPLE SDK search. Pol Henarejos 2023-02-16 13:51:22 +01:00
  • 31f899416c Using new style. Pol Henarejos 2023-02-15 00:14:10 +01:00
  • 43ef33d60b Switching to new style. Pol Henarejos 2023-02-15 00:10:00 +01:00
  • 12bdcbd1f9 Harmonizing coding style. Pol Henarejos 2023-02-14 23:11:51 +01:00
  • 31e66007d3 Fix embeding res_APDU. Pol Henarejos 2023-02-03 17:24:45 +01:00
  • dcb18a3476 Fix when requesting more data. Pol Henarejos 2023-02-02 22:28:42 +01:00
  • 07c15e0a3c Lets try Pol Henarejos 2023-01-30 15:39:22 +01:00
  • 8f68e9f8a3 Some tricks Pol Henarejos 2023-01-30 13:30:11 +01:00
  • 7e8021a3de Adding aesni in emulation env. Pol Henarejos 2023-01-30 13:04:21 +01:00
  • a9eee861fe Adding support for chained apdu in emulation mode. Pol Henarejos 2023-01-17 00:06:17 +01:00
  • 00f9e9c408 Fix packed term. Pol Henarejos 2023-01-14 00:40:50 +01:00
  • b4c1375961 Fix readin cached pages. Pol Henarejos 2023-01-14 00:40:39 +01:00
  • 4b420a7e8e Fix important crash. Pol Henarejos 2023-01-14 00:40:22 +01:00
  • f59b7d92ef Delete meta file if becomes zero. Pol Henarejos 2023-01-14 00:39:06 +01:00
  • 7293683906 Using correct packed form. Pol Henarejos 2023-01-13 18:53:56 +01:00
  • 5d2dd5aa75 Compilation fixes Pol Henarejos 2023-01-13 18:48:40 +01:00
  • 9bdde87b63 Fix reading memory when they are mapped. Pol Henarejos 2023-01-13 18:07:33 +01:00
  • 007782cd2b Moving debug data. Pol Henarejos 2023-01-12 20:03:51 +01:00
  • 4d06c0fc3d Fix accessing to mapped memory. Pol Henarejos 2023-01-12 20:03:21 +01:00
  • 4c5ce3d257 Adding MAX macro. Pol Henarejos 2023-01-12 20:02:39 +01:00
  • abb86dbf4b Fix missing vars in cmake. Pol Henarejos 2023-01-12 20:02:26 +01:00
  • 4919eb980f Added a major refactoring to include Emulated interface. Pol Henarejos 2023-01-09 18:06:21 +01:00
  • 2d511df5d8 Fix alternating CCID and HID. (IT DOES NOT WORK) Pol Henarejos 2022-12-30 21:34:10 +01:00
  • bc107de1b9 Restyled messages. Pol Henarejos 2022-12-30 01:55:16 +01:00
  • 411755dee4 Adding a secondary HID interface that emulates a keyboard. Pol Henarejos 2022-12-30 01:41:49 +01:00
  • 20bd2c8b41 Fix writting read buffer for itf > 0. Pol Henarejos 2022-12-30 01:40:22 +01:00
  • 70979da57a Remove debug line. Pol Henarejos 2022-12-28 17:05:19 +01:00
  • 9e92b9d4ed asn1_find_tag() may accept NULL tag_data and tag_len. Pol Henarejos 2022-12-26 21:37:42 +01:00
  • 026ce37c11 Fix returned type. Pol Henarejos 2022-12-24 01:40:53 +01:00
  • 36b2924036 If file functions are called with NULL arg silently return. Pol Henarejos 2022-12-24 01:39:26 +01:00
  • a8fe504d14 No more discrimination related with core0/core1. using get_core_num() returns the core number. Pol Henarejos 2022-12-24 01:38:09 +01:00
  • c0a540ae2b Fix processing APDU when no app is selected. Pol Henarejos 2022-12-24 01:37:04 +01:00
  • 7deaa990d3 An app can be selected even if there is another selected previously. Pol Henarejos 2022-12-24 00:49:25 +01:00
  • 88b2978ae5 Fix ATR response. Pol Henarejos 2022-12-22 22:50:37 +01:00
  • b0bfc410a4 Thread on CORE1 is reset at every call. Pol Henarejos 2022-12-22 20:39:01 +01:00
  • 3310b911fc APDU header is defined at apdu_processing, depending on the interface. Pol Henarejos 2022-12-22 20:38:34 +01:00
  • 4682e5821f Selecting an app by AID requires the AID as argument. Pol Henarejos 2022-12-22 19:33:02 +01:00
  • 24522b9db8 Fix selecting FIDO AID when MSG. Pol Henarejos 2022-12-22 19:32:02 +01:00
  • cd3ab0682c Fix initiating driver for CCID and buffers. Pol Henarejos 2022-12-22 19:31:39 +01:00
  • e99757ed52 Fix with size of descriptor in single interface mode. Pol Henarejos 2022-12-20 23:51:14 +01:00
  • 6faebdf309 TUD options are declared on compile time depending on enabled interfaces. Pol Henarejos 2022-12-20 23:50:51 +01:00
  • e5825df5cb Added capability to add multiple interfaces: HID and CCID at compile time. Pol Henarejos 2022-12-20 23:41:24 +01:00
  • fa54da973c Added first step to Enterprise Attestation. Pol Henarejos 2022-11-30 23:41:05 +01:00
  • 0bc13df1a2 Queues are emptied at begining of card thread. Pol Henarejos 2022-11-28 18:54:01 +01:00
  • a3f060a79d Setting own VID/PID (despite they are useless). Pol Henarejos 2022-11-28 17:36:19 +01:00
  • c4178fda4b Fix when multiple shutdowns are sent Pol Henarejos 2022-11-24 20:21:06 +01:00