Commit Graph

  • 218660e694 Only allow change PHY without PIN. PIN is required for other extra options. Pol Henarejos 2024-04-22 23:47:08 +02:00
  • de89d61359 Use new file methods. Pol Henarejos 2024-04-22 23:44:00 +02:00
  • 8e8192362c Use macros for referring system fids. Pol Henarejos 2024-04-17 19:43:10 +02:00
  • 25c93c279f Fix potential crash on loading dkek. Pol Henarejos 2024-04-17 19:42:47 +02:00
  • 001d076fdf Better check for XKEK content. Pol Henarejos 2024-04-17 19:42:23 +02:00
  • 35d5d5e94e Use search_file() method. Pol Henarejos 2024-04-17 19:19:45 +02:00
  • b034303193 Use new methods search_file() and file_put_data(). Pol Henarejos 2024-04-17 16:36:34 +02:00
  • 623cf10dba Add phy command to pico-hsm-tool to change VIDPID dynamically. Pol Henarejos 2024-04-17 11:51:25 +02:00
  • fdc41e5856 Add support for PHY command to store and change VIDPID and LED no. dynamically on reboot. Pol Henarejos 2024-04-17 11:50:44 +02:00
  • 5d0dc210da Use external unique ID. Pol Henarejos 2024-04-17 11:48:23 +02:00
  • a674410826 Remove carriage return \r for better debug. Pol Henarejos 2024-04-17 11:46:34 +02:00
  • 920d22212a Add phy command to pico-hsm-tool to change VIDPID dynamically. Pol Henarejos 2024-04-16 23:23:20 +02:00
  • aeeb540a2f Add support for PHY command to store and change VIDPID and LED no. dynamically on reboot. Pol Henarejos 2024-04-16 23:22:49 +02:00
  • be071b0bc1 Add support for dynamic VID / PID. Pol Henarejos 2024-04-16 00:05:01 +02:00
  • 8bbbdb4dd8 Build WCID interface. Pol Henarejos 2024-04-16 00:04:48 +02:00
  • 45b633cc9d More defaults. Pol Henarejos 2024-04-16 00:04:33 +02:00
  • 842919a26b Use external unique ID. Pol Henarejos 2024-04-15 23:45:30 +02:00
  • 3dbcefea85 Upate build parameters. Pol Henarejos 2024-04-11 15:15:18 +02:00
  • 60038f9345 Fix flash issues. Pol Henarejos 2024-04-10 20:29:02 +02:00
  • d8c7fb0856 Remove carriage return \r for better debug. Pol Henarejos 2024-04-10 18:16:38 +02:00
  • d6456b4dde First attempt to add support to ESP32. Pol Henarejos 2024-04-08 19:41:39 +02:00
  • ac781c1db6 Fix asn1 struct initialization. Pol Henarejos 2024-03-13 21:21:37 +01:00
  • c3b66773e8 Use new asn1 structs. Pol Henarejos 2024-03-13 18:11:28 +01:00
  • 3ca23b932c Fix Windows emulation build. Pol Henarejos 2024-01-09 11:43:59 +01:00
  • 9fad920c3b Fix Windows emulation build. Pol Henarejos 2024-01-09 11:43:46 +01:00
  • 38bef5b43f Fix error message Pol Henarejos 2024-01-09 11:26:26 +01:00
  • 2034e436d1 Fix CVC outer signature length. Pol Henarejos 2024-01-08 10:59:34 +01:00
  • 215221b30e Let's add pico and local CodeQL modes. Pol Henarejos 2024-01-02 20:51:08 +01:00
  • de4d95beb8 Fix Pico build. Pol Henarejos 2024-01-02 20:43:24 +01:00
  • 963b6f4f87 Fix CodeQL build. Pol Henarejos 2024-01-02 20:36:54 +01:00
  • fa9b244c42 Fix LE computation in a wrapped APDU. Pol Henarejos 2024-01-02 19:57:52 +01:00
  • 2b92d89ab7 Fix size_t casting. Pol Henarejos 2024-01-02 19:56:38 +01:00
  • a1d7733b95 Fix key exchange. Pol Henarejos 2024-01-02 02:44:59 +01:00
  • 39f1041dbb Fix byte overwrite for long chained RAPDU. Pol Henarejos 2024-01-02 02:36:21 +01:00
  • 2e4fc568db Fix new return format for import_kek. Pol Henarejos 2024-01-02 02:36:09 +01:00
  • 4f4e6e09a2 Fix size var load. Pol Henarejos 2024-01-02 02:31:38 +01:00
  • 08c0aaee6f Fix SM wrap for large RAPDU. Pol Henarejos 2024-01-02 01:03:57 +01:00
  • de98e79c99 Try to fix CodeQL build. Pol Henarejos 2024-01-01 21:09:42 +01:00
  • 481cd5fd69 Some fixes for emulation. Pol Henarejos 2024-01-01 20:58:40 +01:00
  • d9a8826a32 Stupid bug integer overflow. Pol Henarejos 2024-01-01 02:01:22 +01:00
  • d82affa880 Added support for building emulation in Windows. Pol Henarejos 2024-01-01 01:55:49 +01:00
  • ab31a6615c Fix ATR overwrite. Pol Henarejos 2023-12-29 19:07:28 +01:00
  • 677cceb130 Update to latest PicoHSM. Pol Henarejos 2023-12-29 19:07:20 +01:00
  • 29967c067a 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:14:04 +01:00
  • 2974aa234a Added required for subparsers. Pol Henarejos 2023-11-13 16:59:15 +01:00
  • d90b296237 Added keygen command to generate AES, X25519 and X448 keys. Pol Henarejos 2023-11-13 16:57:11 +01:00
  • e98b26fee5 Flush stderr. Pol Henarejos 2023-11-13 15:34:33 +01:00
  • 2086a68c53 Key id not needed on keygen. Pol Henarejos 2023-11-13 15:34:21 +01:00
  • 74afa07512 Do not make a PRKD on key unwrap since it is already done when storing. Pol Henarejos 2023-11-13 15:33:52 +01:00
  • e96e1d0097 When a key is generated and stored, it creates its PRKD. Pol Henarejos 2023-11-13 15:33:27 +01:00
  • 4d47f0224e Fix emulation in apple. Pol Henarejos 2023-11-13 14:26:46 +01:00
  • 58692b2711 Fix PRKD cert on key unwrap. Pol Henarejos 2023-11-13 14:14:10 +01:00
  • a5ab1cabc5 Add support for AES-ECB, AES-CBC with custom IV, AES-OFB, AES-CFB, AES-GCM, AES-CCM, AES-CTR and AES-XTS. Pol Henarejos 2023-11-11 21:19:31 +01:00
  • 1c7cdc8564 Added support for CMAC. Pol Henarejos 2023-11-11 20:28:13 +01:00
  • d74b3418bc Fix typo Pol Henarejos 2023-11-11 20:13:38 +01:00
  • fb5be153ed Fix merge. v3.6-eddsa1 Pol Henarejos 2023-11-06 23:51:15 +01:00
  • 0ac71f2fff Removed old SDK Pol Henarejos 2023-11-06 23:47:21 +01:00
  • 6ec5235cc3 Upgrade Pico Keys SDK and mbedtls 3.5 Pol Henarejos 2023-11-06 23:38:33 +01:00
  • ff74d6306e mbedtls 3.5 Pol Henarejos 2023-11-06 23:27:02 +01:00
  • ba562da00e Merge branch 'development' into development-eddsa Pol Henarejos 2023-11-06 23:11:08 +01:00
  • 98e9b72b42 Upgrade version to 3.6. v3.6 Pol Henarejos 2023-11-06 17:26:43 +01:00
  • 1b0d23cf24 Add two new boards. Pol Henarejos 2023-11-06 17:26:24 +01:00
  • 3ccff7881f Upgrade to Pico Keys SDK 5. Pol Henarejos 2023-11-06 17:25:04 +01:00
  • a3bf2e9e14 If no key is found, generate a new one. Pol Henarejos 2023-11-06 17:10:19 +01:00
  • 88ff27f354 Fix mbedTLS 3.5 build. Pol Henarejos 2023-11-06 17:01:27 +01:00
  • ed2925cfb6 Use new Pico Keys SDK. Pol Henarejos 2023-11-06 14:25:42 +01:00
  • cc19f8f061 Use new pico-keys-sdk submodule. Pol Henarejos 2023-11-06 14:20:39 +01:00
  • b6831a4650 Rename pico-hsm-sdk submodule to new name. Pol Henarejos 2023-11-06 14:20:19 +01:00
  • 652a0f0d21 Fix managing spaces. Pol Henarejos 2023-10-12 21:04:02 +02:00
  • 9dbf4b3172 Removing pkcs11-tool test for EC. Pol Henarejos 2023-10-12 19:03:37 +02:00
  • 76522829ef User must log in after DKEK import. Pol Henarejos 2023-10-12 17:42:49 +02:00
  • 6b1eeb4004 Fix DKEK import when no logged. Pol Henarejos 2023-10-12 17:42:31 +02:00
  • 2693ab4926 Fix applet selection. Pol Henarejos 2023-10-12 17:40:56 +02:00
  • 5d21e39aa6 Fix deleting key domain. Pol Henarejos 2023-10-12 17:40:20 +02:00
  • 1bf0d6337b Added backup and restore tests (pkcs11 wrap/unwrap). Pol Henarejos 2023-10-11 21:12:06 +02:00
  • 1950b03d35 Add more pkcs11-tool tests. Pol Henarejos 2023-10-11 21:11:41 +02:00
  • 4be258f4c7 Fix applet loading. Pol Henarejos 2023-10-11 21:04:53 +02:00
  • eddb1baf7b Use new applet selection format. Pol Henarejos 2023-10-11 21:03:17 +02:00
  • 11bb00e186 Default key domain is 0. Pol Henarejos 2023-10-11 21:03:09 +02:00
  • aaed6bd7b6 New format for applet selection. Pol Henarejos 2023-10-11 21:02:18 +02:00
  • 2853b38b08 Add PKCS11 tool test Pol Henarejos 2023-10-11 13:00:24 +02:00
  • 654cb1e4e0 Added AES pkcs11 tests. Pol Henarejos 2023-10-11 12:13:21 +02:00
  • 185d19504f Add plaintext debug. Pol Henarejos 2023-10-11 12:12:53 +02:00
  • dbe0ef19de Fix store binary test script. Pol Henarejos 2023-10-09 22:17:22 +02:00
  • c3b57b229f Add sc-hsm-pkcs11-test to test matrix. Pol Henarejos 2023-10-09 21:56:41 +02:00
  • 43c46e9112 Add sc-hsm-embedd pkcs11 driver and test. Pol Henarejos 2023-10-09 21:56:18 +02:00
  • d5af9160c1 Build in docker with for CI flag. Pol Henarejos 2023-10-09 21:55:55 +02:00
  • e27c8d4ff6 Added flag for compile for CI or production. Pol Henarejos 2023-10-09 21:55:31 +02:00
  • 2ecfff0ebb Add store binary data tests. Pol Henarejos 2023-10-09 21:15:51 +02:00
  • 3057aba041 Fix redundant line. Pol Henarejos 2023-10-09 21:15:23 +02:00
  • 011a594fe4 Also use artifacts@v3 on upload. Pol Henarejos 2023-10-09 19:18:04 +02:00
  • 448d61dd2d Use artifact@v3 Pol Henarejos 2023-10-09 19:00:36 +02:00
  • fa821c43c8 Prune images autom. Pol Henarejos 2023-10-09 19:00:23 +02:00
  • 9db3e78d32 Not necessary rmi Pol Henarejos 2023-10-09 18:41:01 +02:00
  • b74c4070d1 When build, it copies generated binaries to image, which will be used later by other jobs. Pol Henarejos 2023-10-09 18:26:16 +02:00
  • a7770a7e57 Check Pico HSM PCSC connectivity. Pol Henarejos 2023-10-09 18:25:10 +02:00
  • 78cbe59e64 Fix startup Pol Henarejos 2023-10-09 17:58:32 +02:00
  • 42a9434c50 Not used Pol Henarejos 2023-10-09 17:46:01 +02:00
  • 11a3472941 Refactor test workflow Pol Henarejos 2023-10-09 17:45:49 +02:00
  • 2f177eb8df Build image only during build Pol Henarejos 2023-10-09 16:46:51 +02:00