Commit Graph

  • a9fb170c58 Added tests for BIP and SLIP. Pol Henarejos 2023-05-23 20:40:31 +02:00
  • 46d85c029e Added first commit with BIP and SLIP support for cryptowallets. Pol Henarejos 2023-05-23 20:40:16 +02:00
  • 1c6f4cfd7f Update FUNDING.yml Pol Henarejos 2023-05-17 09:44:59 +02:00
  • 526869bc06 Create FUNDING.yml Pol Henarejos 2023-05-17 09:42:57 +02:00
  • 279df32acc Update README.md Pol Henarejos 2023-05-11 20:05:28 +02:00
  • c402b884cc Upgrade to mbedtls 3.4 Pol Henarejos 2023-05-10 00:17:32 +02:00
  • 8316196b42 Using forked vsmartcard just in case Pol Henarejos 2023-05-04 11:10:58 +02:00
  • 7a6dafd7b6 Moving HSM SDK pointer Pol Henarejos 2023-05-04 09:13:15 +02:00
  • 6d3809a792 Allow signatures with device key. Pol Henarejos 2023-04-06 14:09:18 +02:00
  • f22f58f983 Fix returning EOF when reading an element outside the size. Pol Henarejos 2023-04-06 14:08:43 +02:00
  • 405bf92e18 Added support for TokenInfo and StaticTokenInfo files. Pol Henarejos 2023-04-04 09:53:26 +02:00
  • b5b6dcd2e6 Fix conditional build for WS2812. Pol Henarejos 2023-03-26 20:16:09 +02:00
  • d637dbec01 Added CMAC and AES generation to README. Pol Henarejos 2023-03-26 18:42:12 +02:00
  • ebcac9dfdc Upgrade to pico-hsm-tool to use the newer PicoHSM python package. Pol Henarejos 2023-03-23 20:19:53 +01:00
  • 510b148adf Update README with latest AES algorithms. Pol Henarejos 2023-03-23 20:19:15 +01:00
  • 371ae93fcd Added support for AES CCM. Pol Henarejos 2023-03-23 19:20:33 +01:00
  • f5e875a6b7 Added support for AES CTR. Pol Henarejos 2023-03-23 18:47:32 +01:00
  • ad3304a384 Added AES XTS tests, with and without IV. Pol Henarejos 2023-03-22 23:29:31 +01:00
  • 4d647ba3c8 Add sanity check if wrong oid is provided. Pol Henarejos 2023-03-22 23:28:55 +01:00
  • 008db87fa7 Fix AES XTS call. Pol Henarejos 2023-03-22 23:28:22 +01:00
  • 1d80b45439 Add tests for AES extended. Pol Henarejos 2023-03-22 23:25:25 +01:00
  • 17560034ec Fix AES extended encoding call. Pol Henarejos 2023-03-22 23:23:12 +01:00
  • 8b0d85fbd4 Fix PRKD generation for AES. Pol Henarejos 2023-03-22 22:57:15 +01:00
  • 3dcb2e9d70 A PRKD is generated on every key import, regardless it might be replaced later. Pol Henarejos 2023-03-22 22:56:55 +01:00
  • 0f12ff1c48 Added support for PRKD for AES. Pol Henarejos 2023-03-22 22:07:34 +01:00
  • 2a5fe1cc6d Added initialization with self-signed certificate. Pol Henarejos 2023-03-22 01:04:24 +01:00
  • 5e0f62265d Fix key size of terminal cert. Pol Henarejos 2023-03-20 21:41:38 +01:00
  • 0990805fb6 More code style. Pol Henarejos 2023-03-20 20:08:29 +01:00
  • 18bcf532e7 PicoHSM always returns bytes(). Pol Henarejos 2023-03-20 20:07:33 +01:00
  • 9f0316aedd Add chachapoly tests. Pol Henarejos 2023-03-20 18:08:00 +01:00
  • 088002863c Before cloning, it should be removed. Pol Henarejos 2023-03-20 18:03:49 +01:00
  • 7876f4b32a pypicohsm is built everytime that test is run, since it could implement more features used by tests. Pol Henarejos 2023-03-20 18:02:33 +01:00
  • a5e3d4e0e5 Added dockerfile for debian. Pol Henarejos 2023-03-20 18:01:48 +01:00
  • 0c842773d2 Move to debian docker. Pol Henarejos 2023-03-20 17:58:43 +01:00
  • 0aaf339353 Fix error message. Pol Henarejos 2023-03-20 17:58:17 +01:00
  • efba39adc5 Add SW_WRONG_DATA return on bad tag for Chachapoly. Pol Henarejos 2023-03-20 17:58:01 +01:00
  • 13755cb4d5 Fix buffer overflow when importing AES 512 key. Pol Henarejos 2023-03-20 17:06:06 +01:00
  • 11a30863e8 Using new package pypicohsm. Pol Henarejos 2023-03-20 17:05:46 +01:00
  • a69d06b2d9 Fixed chachapoly crypt algorithm. Pol Henarejos 2023-03-19 20:24:32 +01:00
  • 1c7bc18161 Added support for AES 512 bit key size. Pol Henarejos 2023-03-19 20:22:40 +01:00
  • 86ce01cac2 Added AES XTS via AES_EXT command. Pol Henarejos 2023-03-19 19:42:37 +01:00
  • 9cb60ba420 Added AES ECB (insecure), CBC (with custom IV), OFB, CFB and GCM (with 16-byte tag) via AES_EXT command. Pol Henarejos 2023-03-19 19:34:34 +01:00
  • 99f1620e7d Fixes #22. Pol Henarejos 2023-03-18 18:40:27 +01:00
  • 755570e01a Fix deletion key in test 50. Pol Henarejos 2023-03-18 18:38:05 +01:00
  • 4b264597d6 Fix race condition. Pol Henarejos 2023-03-14 09:58:06 +01:00
  • 67e3d908b3 Fix test key deletion. Pol Henarejos 2023-03-14 09:57:25 +01:00
  • 7ae76354ef Added more tests for key_export. Pol Henarejos 2023-03-13 18:03:21 +01:00
  • 9291c2b4e3 delete_file() supports p1/p2 Pol Henarejos 2023-03-13 18:02:47 +01:00
  • 657ee18730 Added assert on deletion Pol Henarejos 2023-03-13 18:02:31 +01:00
  • 132054c9b9 Public point is calculated everytime a private key is loaded. Pol Henarejos 2023-03-13 18:01:56 +01:00
  • 2a3b9b7474 Fix wrapping points. Pol Henarejos 2023-03-13 18:01:20 +01:00
  • 4e73723747 Fix checking key domain set. Pol Henarejos 2023-03-10 15:59:52 +01:00
  • 09724d95db Fix XKEK key generation. Pol Henarejos 2023-03-10 07:34:15 +01:00
  • c1bfb597bc Added first tests of key wrapping. Pol Henarejos 2023-03-09 20:10:25 +01:00
  • fd53b88397 Added more tests to key domain tests. Pol Henarejos 2023-03-09 20:09:58 +01:00
  • 11e5338736 Check if key domain is not already initialized when initializing. Pol Henarejos 2023-03-09 20:09:32 +01:00
  • 3660120b11 Before wrapping, check if DKEK is properly configured. Pol Henarejos 2023-03-09 20:09:03 +01:00
  • 75ca1b57d9 Added support of counter, algorithms and key domain to AES too. Pol Henarejos 2023-03-09 18:39:06 +01:00
  • 7af67713e7 Add support for counter, algorithms and key domain in key generation. Pol Henarejos 2023-03-09 18:38:29 +01:00
  • 63c465138b Added delete XKEK tests. Pol Henarejos 2023-03-09 18:28:31 +01:00
  • 4d569df108 Added dkek import in key domain tests. Pol Henarejos 2023-03-09 18:28:08 +01:00
  • bee6a7bb92 Return error if a non-initialized key domain is deleted. Pol Henarejos 2023-03-09 18:27:47 +01:00
  • e4583eb9c0 Fix potential crash on delete file. Pol Henarejos 2023-03-09 18:16:38 +01:00
  • 1c8582365d Add manual trigger Pol Henarejos 2023-03-09 08:48:09 +01:00
  • daf71678c5 Added first XKEK tests. Pol Henarejos 2023-03-08 22:15:44 +01:00
  • 26f0775772 Move some certs to common place. Pol Henarejos 2023-03-08 22:15:11 +01:00
  • ed674b379c Zeroize ecdh key. Pol Henarejos 2023-03-08 11:15:02 +01:00
  • 6aa8d37d07 If a key does not belong to any key domain, it cannot be wrapped. Pol Henarejos 2023-03-07 23:45:37 +01:00
  • 963456051e If public point is not found, it is computed automatically. Pol Henarejos 2023-03-07 23:45:10 +01:00
  • 1e90699a3f Added more PKA tests. Pol Henarejos 2023-03-07 23:16:12 +01:00
  • f8110a9d75 Update README. Pol Henarejos 2023-03-07 23:16:01 +01:00
  • d81b21695f If no key domain is found, 0 is used by default. Pol Henarejos 2023-03-07 23:15:50 +01:00
  • 51e9e6722e Reset puk status on failed authentication. Pol Henarejos 2023-03-07 23:14:55 +01:00
  • dba4630895 Add Public Key Authorization tests. Pol Henarejos 2023-03-07 17:28:56 +01:00
  • ee73c6e781 Code style Pol Henarejos 2023-03-07 17:28:23 +01:00
  • 2f63966c60 Fix checking status of PUK. Pol Henarejos 2023-03-07 15:55:59 +01:00
  • e624f9ff72 Fix checking if PKU is enabled. Pol Henarejos 2023-03-07 11:15:07 +01:00
  • fb4ff9424e Call reset puk store on init. Pol Henarejos 2023-03-07 11:14:42 +01:00
  • 63b245b858 Fix initialize with PUK store memory. Pol Henarejos 2023-03-07 11:14:02 +01:00
  • cd525d91a3 Updated base flash memory for emulation to include CA CVC. Pol Henarejos 2023-03-06 01:09:00 +01:00
  • 8fd3b4d858 CA cert is also uploaded to perform PKA. Pol Henarejos 2023-03-06 01:01:20 +01:00
  • 3c160f69c0 Add DV cert to PUK store. Pol Henarejos 2023-03-06 00:40:31 +01:00
  • 2c9fa8b19f Add two new boards for build. Pol Henarejos 2023-03-06 00:39:00 +01:00
  • ccfe7ca8a8 Upgrade to version 3.4 v3.4 Pol Henarejos 2023-03-04 14:37:31 +01:00
  • d2d038f14d Upgrade to version 3.4 Pol Henarejos 2023-03-04 14:35:33 +01:00
  • 1a05d7b51f Fix conditional interface compilation. Pol Henarejos 2023-03-04 14:16:59 +01:00
  • fa60ed5049 Update code style. Pol Henarejos 2023-03-04 14:05:51 +01:00
  • 35aec06391 Adding support for CCID GET, SET and RESET PARAMS. Pol Henarejos 2023-02-20 13:17:32 +01:00
  • 61359c7ebd Add key derivation tests (HKDF, PBKDF2 and X963). Pol Henarejos 2023-02-17 23:54:40 +01:00
  • 20c01eb08d Fix name of x963 function. Pol Henarejos 2023-02-17 23:54:06 +01:00
  • 0b71bf693d Added CMAC tests. Pol Henarejos 2023-02-17 22:46:16 +01:00
  • a1f478239d Added HMAC tests. Pol Henarejos 2023-02-17 22:43:28 +01:00
  • 420e55901c Fix HMAC computation. Pol Henarejos 2023-02-17 22:43:09 +01:00
  • 414cab78e3 Enabling entropy and ctr_drbg for emulation mode. Pol Henarejos 2023-02-16 23:42:38 +01:00
  • 36e5282d19 Update codeql.yml Pol Henarejos 2023-02-16 23:36:08 +01:00
  • 367651fe75 Upgrade to mbedtls v3.3.0 Pol Henarejos 2023-02-16 23:34:13 +01:00
  • 7b62ca5327 Upgrade to mbedtls v3.3.0 Pol Henarejos 2023-02-16 23:33:13 +01:00
  • 9be176e523 Fixes for Pico SDK 1.5 Pol Henarejos 2023-02-16 22:55:36 +01:00
  • b24e109a3c Fix error message when no card is detected. Pol Henarejos 2023-02-16 22:50:53 +01:00
  • f61d0dd677 Update codeql.yml Pol Henarejos 2023-02-15 19:55:13 +01:00