This website requires JavaScript.
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
215fdca9f8
Added AES cipher tests.
Pol Henarejos
2023-02-15 19:47:16 +01:00
9279773073
Removed printf
Pol Henarejos
2023-02-15 19:46:42 +01:00
d5b718ca58
Move pointer again...
Pol Henarejos
2023-02-15 00:14:37 +01:00
cd6e280f4f
Switching to new style.
Pol Henarejos
2023-02-15 00:10:35 +01:00
e7495d11f2
Moving pointer.
Pol Henarejos
2023-02-14 23:25:13 +01:00
daaa5bf402
Harmonize coding style.
Pol Henarejos
2023-02-14 23:13:46 +01:00
cab72f200a
Moving pointer
Pol Henarejos
2023-02-14 23:12:48 +01:00
380d47faa1
Renaming for avoiding confusions
Pol Henarejos
2023-02-14 23:05:37 +01:00
962d1c6916
When runing a test, load a initial flash image that contains KEYDEV.
Pol Henarejos
2023-02-14 22:53:30 +01:00
d81d51d6fc
Fix get public key.
Pol Henarejos
2023-02-14 21:51:46 +01:00
319000df1a
Add challenge tests.
Pol Henarejos
2023-02-14 21:38:06 +01:00
5508e531a0
Added key domain tests.
Pol Henarejos
2023-02-14 18:52:12 +01:00
1e846600dd
Add test info
Pol Henarejos
2023-02-14 18:51:50 +01:00
43a49d2a14
Return reference not found when deleting a key domain.
Pol Henarejos
2023-02-14 18:51:30 +01:00
3b9c2d159b
Fix returning existing key domain.
Pol Henarejos
2023-02-14 18:47:43 +01:00
14c7852143
Fix returning shared secret.
Pol Henarejos
2023-02-14 11:28:11 +01:00
407110def4
Added ECDH tests.
Pol Henarejos
2023-02-14 11:25:02 +01:00
79d86a335c
Adding more tests and renaming old ones.
Pol Henarejos
2023-02-13 23:54:41 +01:00
0685be5f1e
EE_CERTIFICATE is added when importing key.
Pol Henarejos
2023-02-13 23:53:41 +01:00
8f6ae52c70
Added routines for import key.
Pol Henarejos
2023-02-13 23:52:58 +01:00
af16be64a2
Adding checks on ec import.
Pol Henarejos
2023-02-13 23:30:27 +01:00
68071825c2
Fix EC public key computation when importing.
Pol Henarejos
2023-02-13 23:24:04 +01:00
fbabb81acd
Fix asymmetric decrypt for OAEP. It only supports SHA256.
Pol Henarejos
2023-02-12 21:53:47 +01:00
8bc4b133ca
Adding routine for asymmetric decryption.
Pol Henarejos
2023-02-12 21:53:19 +01:00
2ce458dad5
Adding BP curves and RSA 4k to signature test.
Pol Henarejos
2023-02-12 21:53:01 +01:00
478b186094
Finally it seems to work.
Pol Henarejos
2023-01-30 16:09:57 +01:00
ab71b3163b
Adding sleep just in case.
Pol Henarejos
2023-01-30 16:07:41 +01:00
c4de88e6c6
Moving pointer
Pol Henarejos
2023-01-30 15:39:31 +01:00
3b0e34f465
More tries...
Pol Henarejos
2023-01-30 13:23:39 +01:00
9077e78315
More flags to debug
Pol Henarejos
2023-01-30 13:15:04 +01:00
2f5fcd1f14
Start pcscd with debug flag to get more debug info.
Pol Henarejos
2023-01-30 13:09:17 +01:00