0141e0ab4e
Adding ec curve find from prime.
Pol Henarejos
2022-03-29 20:17:42 +02:00
e7d8695394
Added length checks.
Pol Henarejos
2022-03-29 19:16:15 +02:00
6876edea5a
Some fix in encode key
Pol Henarejos
2022-03-29 19:06:00 +02:00
2e655d6341
Fixes with AES encryption
Pol Henarejos
2022-03-29 18:25:47 +02:00
2f4cca19c4
Moving some dkek crypt stuff to dkek.
Pol Henarejos
2022-03-29 13:45:28 +02:00
5eb74d8ca3
Adding encode_key with dkek (for wrapping).
Pol Henarejos
2022-03-29 13:45:07 +02:00
7b0d5a6700
Fix loading aes key in decrypt function
Pol Henarejos
2022-03-29 09:35:06 +02:00
427260663f
Replacing CFB to CBC AES proc
Pol Henarejos
2022-03-29 09:34:44 +02:00
047a443536
Adding dkek procedures to wrap/unwrap.
Pol Henarejos
2022-03-28 17:38:15 +02:00
7a9ee8145d
Adding headers to random.h
Pol Henarejos
2022-03-28 17:38:02 +02:00
2535d0e537
Adding generic aes encryption/decryption.
Pol Henarejos
2022-03-28 17:37:53 +02:00
6fe7d7991b
Len of CMAC is always 16.
Pol Henarejos
2022-03-28 17:37:24 +02:00
d061958f90
Moving hash to other file.
Pol Henarejos
2022-03-28 16:02:28 +02:00
3112200eb6
Merge branch 'eac'
Pol Henarejos
2022-03-28 14:04:05 +02:00
69a406832d
Adding hsm initializing options
Pol Henarejos
2022-03-28 01:37:36 +02:00
cd4ceb0a61
Fix returning current dkeks when the device is initialized without dkeks.
Pol Henarejos
2022-03-28 01:37:19 +02:00
450ec5dec1
Also list PRKD files.
Pol Henarejos
2022-03-27 20:47:11 +02:00
c7abd1a067
Adding DKEK report
Pol Henarejos
2022-03-27 20:27:10 +02:00
c6d87756ab
Adding SOPIN verification.
Pol Henarejos
2022-03-27 19:00:21 +02:00
0916489388
Initialization now returns free memory if no parameters are given.
Pol Henarejos
2022-03-27 18:53:41 +02:00
b1e83c92e9
Adding cvcerts and dica
Pol Henarejos
2022-03-27 18:15:16 +02:00
d01e06aa11
2F02 returns terminal's cvcert and DICA.
Pol Henarejos
2022-03-27 18:15:06 +02:00
464107b13f
Adding tag 85 for FCP when selecting applet
Pol Henarejos
2022-03-25 18:15:26 +01:00
e431b25fc1
Not used
Pol Henarejos
2022-03-25 18:15:05 +01:00
e4ed917c1c
Updating to v1.6
Pol Henarejos
2022-03-25 17:59:43 +01:00
ade3e6d2fb
Added sanity check for some boards without led.
Pol Henarejos
2022-03-25 17:58:57 +01:00
d12d18261f
Changing name of generic pico.
Pol Henarejos
2022-03-25 17:58:41 +01:00
525b4439c9
Update README.md
Pol Henarejos
2022-03-25 16:56:53 +01:00
43ec92ddc5
Added script to build all boards.
v1.6
Pol Henarejos
2022-03-25 12:51:34 +01:00
74127a038f
Changing label name.
Pol Henarejos
2022-03-25 12:09:32 +01:00
a01bd39f21
Adding license headers.
Pol Henarejos
2022-03-25 12:08:48 +01:00
9c707df93b
Create LICENSE
Pol Henarejos
2022-03-25 11:32:52 +01:00
4bdb189f10
Update README.md
Pol Henarejos
2022-03-25 09:53:54 +01:00
c2a474df98
Fix an overflow in EC key derivation.
Pol Henarejos
2022-03-24 20:42:43 +01:00
483dc5e953
- Fixed a random bug when generating EC keys. - Removed cvc_req. Now it is encapsulated from the previous existing cvc. - All tests passed (sc-hsm-pkcs11-test invasive)
Pol Henarejos
2022-03-24 00:34:29 +01:00
f490f073b0
When updating an EF, if it does not exist, we create it. Added support for CA and CD certificates update.
Pol Henarejos
2022-03-21 16:04:40 +01:00
2eab8eba09
Added asymmetric key derivation. Only for EC.
Pol Henarejos
2022-03-21 15:37:34 +01:00
783c901567
Replaced EC load private key with read_key, which performs sanity checks.
Pol Henarejos
2022-03-21 14:25:00 +01:00
90d1fa0f9b
If modulusSize is used, the test will fail as it is an unexpected field. It does not seems necessary.
Pol Henarejos
2022-03-21 11:37:05 +01:00
96b791b3b9
- Fixed bug where PublicKD was saved in EE_CERTIFICATE_PREFIX. We save there the CSR instead in CVC format. - We put the CHR and CAR into the CSR if provided during the keypair generation.
Pol Henarejos
2022-03-21 11:31:24 +01:00
78d71a6d9c
Upgrading to version 1.4.
v1.4
Pol Henarejos
2022-03-21 00:55:50 +01:00
0a2740fbab
Added AES derive support based on HKDF.
Pol Henarejos
2022-03-21 00:54:59 +01:00
3192e928ff
Fixed a bug with deleting intermediate EF on flash. A new field on EF flash structure is added. Thus, the old structure must be erased.
Pol Henarejos
2022-03-21 00:16:00 +01:00
ae1e2ac111
Fix storing public key description when generating a new keypair.
Pol Henarejos
2022-03-19 19:11:09 +01:00
d87073f4cc
Auth status should not be removed when apple is reselected. Auth status is removed when the reader disconnects the card (unloads it). With this fix, it is possible to login first and send immediate low level APDU command that requires authentification (such as login+CMAC).
Pol Henarejos
2022-03-17 23:37:02 +01:00
36a8f78313
Added support for AES-CMAC.
Pol Henarejos
2022-03-17 23:35:07 +01:00
0628d5015c
Update asymmetric-ciphering.md
Pol Henarejos
2022-03-17 00:44:38 +01:00
daf0f98660
Update asymmetric-ciphering.md
Pol Henarejos
2022-03-17 00:43:44 +01:00
1f06c44a89
Adding ecdh support with MBEDTLS.
Pol Henarejos
2022-03-17 00:28:40 +01:00
ab1490a50b
Added ECDH key derivation.
Pol Henarejos
2022-03-17 00:28:16 +01:00
23f53a6095
Added some free on bad return.
Pol Henarejos
2022-03-16 23:40:09 +01:00
920cf3a1c5
Upgrading to v1.2
v1.2
Pol Henarejos
2022-03-16 23:31:10 +01:00
74f2a80fb4
Update README.md
Pol Henarejos
2022-03-16 18:51:16 +01:00
29361fa110
Update usage.md
Pol Henarejos
2022-03-16 18:50:29 +01:00
679486d38c
Update sign-verify.md
Pol Henarejos
2022-03-16 18:22:11 +01:00
8988d1cf15
Fix support for ECDSA and ECDSA-SHAx signatures.
Pol Henarejos
2022-03-16 18:20:17 +01:00
693c890663
Update asymmetric-ciphering.md
Pol Henarejos
2022-03-16 15:13:23 +01:00
591b02804e
Fix for HASH PSS and HASH PKCS.
Pol Henarejos
2022-03-16 12:02:49 +01:00
37c3028b1c
Adding code for AES derive
Pol Henarejos
2022-03-16 12:02:09 +01:00
2cedf65f1a
Update sign-verify.md
Pol Henarejos
2022-03-16 11:33:00 +01:00
c31e4f8c2b
Update sign-verify.md
Pol Henarejos
2022-03-16 10:04:04 +01:00
c756e756b6
Update sign-verify.md
Pol Henarejos
2022-03-16 10:03:24 +01:00
73bc2ede6b
Fixed a bug with RSA-PKCS-PSS. Surprisingly, PKCS_V21 signature takes in place (input buffer = output buffer) and, for a strange reason, it does not work for res_APDU.
Pol Henarejos
2022-03-16 00:26:54 +01:00
dcae71a4e8
Create asymmetric-ciphering.md
Pol Henarejos
2022-03-15 01:04:27 +01:00
71a5a456c5
Update sign-verify.md
Pol Henarejos
2022-03-15 01:00:00 +01:00
e1f88acb17
Create sign-verify.md
Pol Henarejos
2022-03-15 00:53:18 +01:00
5a2ec221b7
Update usage.md
Pol Henarejos
2022-03-15 00:02:49 +01:00
a018699283
Update README.md
Pol Henarejos
2022-03-14 01:04:50 +01:00
0a10fa4fbb
Update README.md
Pol Henarejos
2022-03-14 01:03:38 +01:00
c609cec441
Update usage.md
Pol Henarejos
2022-03-14 00:59:22 +01:00
587ead4ad9
Update README.md
Pol Henarejos
2022-03-14 00:58:42 +01:00
e3d809ae7f
Create aes.md
Pol Henarejos
2022-03-14 00:55:32 +01:00
4f142d1b93
Create backup-and-restore.md
Pol Henarejos
2022-03-13 23:54:15 +01:00
1f7e7aa14c
Update usage.md
Pol Henarejos
2022-03-13 22:14:56 +01:00
a4baa99fce
Update usage.md
Pol Henarejos
2022-03-13 20:21:54 +01:00
df020efa46
Update usage.md
Pol Henarejos
2022-03-12 20:24:55 +01:00
c31dd26e22
Create usage.md
Pol Henarejos
2022-03-12 01:29:25 +01:00
6d22fc20d4
Update README.md
Pol Henarejos
2022-03-10 18:56:51 +01:00
3d74952c41
Update README.md
Pol Henarejos
2022-03-10 18:47:01 +01:00
51f574f9f6
Update README.md
Pol Henarejos
2022-03-10 18:36:59 +01:00
1c6fb98350
Logout user when applet selected.
Pol Henarejos
2022-03-10 00:48:47 +01:00
f1c0b12f5c
Increasing random buffer and checks.
Pol Henarejos
2022-03-10 00:13:13 +01:00
213b675b9f
Fix returned error code for wrong pin.
Pol Henarejos
2022-03-10 00:09:35 +01:00
b701f639ac
Increasing CCID buffer.
Pol Henarejos
2022-03-10 00:08:22 +01:00
4a0144ed2a
Adding version header to show in lsusb command (bcdDevice) and major version in pkcs15-tool -D.
Pol Henarejos
2022-03-08 18:43:30 +01:00
9be78aade6
Changing project name.
Pol Henarejos
2022-03-08 00:37:27 +01:00
b7ee325d4f
Create README.md
Pol Henarejos
2022-03-08 00:36:42 +01:00
3e89e8f835
Updating submodule url
Pol Henarejos
2022-03-07 23:50:15 +01:00
70f71e742e
Not used anymore.
Pol Henarejos
2022-03-07 23:49:08 +01:00
7988083d6b
Reorganization of file structure. At this moment I disabled openpgp/gnuk due to missing deep tests.
Pol Henarejos
2022-03-07 23:37:10 +01:00
bad954a2c4
USB serial now returns the Pico unique ID.
v1.0
Pol Henarejos
2022-03-07 01:38:32 +01:00
a5902db07f
Adding -DUSB_VID=0xXXXX -DUSB_PID=0xYYYY feature to overwrite default VID/PID.
Pol Henarejos
2022-03-07 01:27:28 +01:00
e75b7bbb1b
Using default VID/PID to avoid licensing issues with FSIJ.
Pol Henarejos
2022-03-07 01:26:32 +01:00
266be17366
Adding script to patch binary with desired VID:PID.
Pol Henarejos
2022-03-07 01:09:48 +01:00
44b4b432d8
Removing LCD layout.
Pol Henarejos
2022-03-07 00:58:45 +01:00
f1868680ca
Using original ATR.
Pol Henarejos
2022-03-07 00:58:10 +01:00
eda8c0ce15
Some code cleanups and led blink modifications.
Pol Henarejos
2022-03-06 14:26:17 +01:00
855b51730b
Fix symmetric AES encryption/decryption. It works!
Pol Henarejos
2022-03-06 01:55:48 +01:00
e36c80761e
Fix login session persistence. It is handled when the card reader disconnects, instead of when applet is selected (only the first time).
Pol Henarejos
2022-03-06 01:50:34 +01:00
bf2624cd88
AES keys are DKEK encrypted in flash.
Pol Henarejos
2022-03-06 01:40:30 +01:00