Commit Graph

  • 34a0027e78 Not used as they are pulled from submodule Pol Henarejos 2022-02-17 19:16:55 +01:00
  • 71cf36bbe1 Adding mbedtls submodule Pol Henarejos 2022-02-17 19:03:27 +01:00
  • ad28c3721a Not used Pol Henarejos 2022-02-17 19:00:59 +01:00
  • c8325babb2 Fixed pin reset Pol Henarejos 2022-02-14 00:29:04 +01:00
  • 86cef892ff Adding PIN reset counter. Pol Henarejos 2022-02-13 18:27:49 +01:00
  • 7e5352940b Moving submodule to patches branch. Pol Henarejos 2022-02-13 17:21:00 +01:00
  • 6b86e5dadd Adding max retries EF Pol Henarejos 2022-02-13 17:12:03 +01:00
  • f91c60efa2 Setting tag Pol Henarejos 2022-02-13 01:20:14 +01:00
  • e3e7221d09 Adding OpenSC submodule. Pol Henarejos 2022-02-13 01:18:52 +01:00
  • 0017284103 Starting migration from gnuk to own solution. gnuk/openpgp will be left as another pkcs15 app. Lots of work has been done in the meanwhile. Pol Henarejos 2022-02-13 01:17:14 +01:00
  • 210fa98ca4 Added scan procedure to load fixed files (i.e., pins) from flash memory. Pol Henarejos 2022-02-07 11:15:20 +01:00
  • bb5da16da6 Removing stuff with old read/write. Currently OPENPGP does not work and it won't until we finish the migration. Pol Henarejos 2022-02-07 11:14:33 +01:00
  • 0c43939de2 Fixed lots of write/read stuff. Pol Henarejos 2022-02-07 11:13:37 +01:00
  • badb1780c6 Added read procedures to take values from the cache. Fixed lockcout bug. Added wait_to_finish procedure, which blocks until all cache is written into the ram. Pol Henarejos 2022-02-07 11:13:13 +01:00
  • 565b61926a Merge branch 'gnuk' into main Pol Henarejos 2022-02-05 14:21:20 +01:00
  • 39c7a6f12a Some other not compiling changes Pol Henarejos 2022-02-05 10:27:12 +01:00
  • 222471acb1 We also include the fid into flash files. Pol Henarejos 2022-02-05 01:54:38 +01:00
  • 30a517908c Rewrite flash from scratch. We are migrating to a file system approach. Pol Henarejos 2022-02-05 01:31:24 +01:00
  • 565f64bcbe Added TokenInfo file. Generate PKCS15_TokenInfo structure with make_pkcs15_to_der script Added applet selection. Pol Henarejos 2022-02-04 00:29:30 +01:00
  • f7adf39f81 Added support for ACL Added support for READ BINARY (B0 and B1) Pol Henarejos 2022-02-03 15:35:49 +01:00
  • af1280ca0b Fix with extended APDU Pol Henarejos 2022-02-03 15:35:09 +01:00
  • 9e5a8b0f0f Adding additional messages. Pol Henarejos 2022-02-03 11:27:20 +01:00
  • df1f81c61c Adding ISO 7816 select procedure. Pol Henarejos 2022-02-03 11:27:10 +01:00
  • f7c2c0afaa Adding support for extended APDU. Added SC-HSM ATR Pol Henarejos 2022-02-03 11:26:31 +01:00
  • f262391d62 Adding some big endian uint16_t functions Pol Henarejos 2022-02-03 11:26:05 +01:00
  • 08e6e2d2dd Return when a write fails Pol Henarejos 2022-02-03 11:25:40 +01:00
  • 756d9a3d5b Migrating from PolarSSL to MBEDTLS 3.1 (formerly PolarSSL). Pol Henarejos 2022-01-24 18:14:42 +01:00
  • 62beedfccc - Fix with obtaining random number - Making optional the argument of f_rng Pol Henarejos 2022-01-24 18:11:20 +01:00
  • d9697003a3 Better debug of gnuk stuff Pol Henarejos 2022-01-24 18:07:41 +01:00
  • fcfe24b089 Fix erase sector. Pol Henarejos 2022-01-24 18:04:56 +01:00
  • 937517258e Fix flash size pages Pol Henarejos 2022-01-24 18:02:30 +01:00
  • 90ee12ed96 Fix a bug where multiple incoming APDU may come Pol Henarejos 2022-01-24 18:02:05 +01:00
  • 08d56af6f3 Debuging address too Pol Henarejos 2022-01-24 18:01:43 +01:00
  • af7ef7856b Some adjustments Pol Henarejos 2022-01-19 01:16:59 +01:00
  • b6eaac895d Reducing the timeout to be catched by the host Pol Henarejos 2022-01-19 01:16:24 +01:00
  • cf23fb45ba Victim init in the core 1 Pol Henarejos 2022-01-19 01:15:10 +01:00
  • 9777219ebb The other core needs to be paused. This is funny because it is not documented in anywhere. Lots of hours spent on this. Pol Henarejos 2022-01-19 00:55:45 +01:00
  • 189c095f1f Flash procedures shall be called from core 0. We created an exclusive mechanism to share cached pages to write onto flash. Pol Henarejos 2022-01-18 00:17:43 +01:00
  • 702b8ee4ff Added neug task to main loop. Pol Henarejos 2022-01-14 23:44:23 +01:00
  • 1156734721 Rewritte random procedures in neug. Random bytes are obtained by using ROSC and FNV. Pol Henarejos 2022-01-14 23:43:20 +01:00
  • 9eaf877fe2 Playing with RNG. It seems to work. Needs further testing Pol Henarejos 2022-01-10 18:08:32 +01:00
  • f37a571ba3 Adding adc to cmake Pol Henarejos 2022-01-10 18:08:07 +01:00
  • 240dc07fa5 Reducing debug level. Pol Henarejos 2022-01-03 23:52:46 +01:00
  • eab3e5b73d The first time, the flash memory is full of garbage. It needs to be marked as empty. Pol Henarejos 2022-01-03 23:52:35 +01:00
  • 7c0321f4f3 Changing vid/pid to gnuk. Pol Henarejos 2022-01-03 22:36:46 +01:00
  • f6a71c0689 Lots of fixes. At this moment flow between host-device works smoothly. opensc-tool -an needs further debug. Pol Henarejos 2022-01-03 22:36:26 +01:00
  • 3dd282ca0a Adding neug (NOT WORKING) Pol Henarejos 2022-01-03 22:35:52 +01:00
  • bc7990b89a Improving readability of debug payload Pol Henarejos 2022-01-03 22:35:17 +01:00
  • fd93f4779e Adding openpgp support. Pol Henarejos 2022-01-03 02:03:12 +01:00
  • 0af5685495 Adding the rest of files: - ASM is disabled - Neug needs full rewrite - Flash is based on PiMoroni 4MB flash (needs adjust) Pol Henarejos 2022-01-03 02:02:39 +01:00
  • 0445f587f7 Lots of fixes. At this time, the RP2040 is detected by opensc-tool -l. However, it sends continuously slot status. Pol Henarejos 2022-01-02 21:37:55 +01:00
  • f7419c4b2f Adding routine for payload debug Pol Henarejos 2022-01-02 20:28:22 +01:00
  • 9229b4b3d3 itf passed to vendord_open is larger than tusb_desc_interface. Pol Henarejos 2022-01-02 19:30:08 +01:00
  • b217740e58 - Adding the rest of Gnuk USB/CCID methods. - It runs the openpgp thread in the other core (core1) and leaves the main program/ccid/usb methods running in the core 0. - At this moment it does not call openpgp_thread. - Compiles but it needs further debug Pol Henarejos 2022-01-02 00:51:54 +01:00
  • 3169139d3d Adding a hack to prepare vendor open Pol Henarejos 2022-01-01 13:12:50 +01:00
  • b69232dd55 Adding notify_slot_change Pol Henarejos 2022-01-01 13:10:58 +01:00
  • 366d59cbfa Starting to port GnuK Pol Henarejos 2022-01-01 12:56:19 +01:00
  • 0dfd5d29f3 Using vendor driver as background layout. However, it does not work since vendor_open() checks that the interface class equals to vendor_class. It must be bypassed somehow. Pol Henarejos 2021-12-31 03:49:29 +01:00
  • 0be9352f0d - Adding BOS - VID/PID must be known by the host in order to load the CCID driver. If others are used, it may not work. Pol Henarejos 2021-12-31 03:47:51 +01:00
  • 0e67eaf659 Adding CCID driver Pol Henarejos 2021-12-31 02:17:09 +01:00
  • c8a2912616 Moving to TinyUSB. Low level API does not provide methods for larger packets. TinyUSB provides a complete interface for managing CCID. Pol Henarejos 2021-12-30 23:35:30 +01:00
  • 06e014531b Adding ccid structs Pol Henarejos 2021-12-30 23:34:31 +01:00
  • 7785c8ff1c First commit. Attempting to emulate a CCID device. Not easy with RP2040 Pol Henarejos 2021-12-30 00:31:01 +01:00
  • a2939d610c initial commit Pol Henarejos 2021-12-30 00:29:52 +01:00