Pol Henarejos
d6456b4dde
First attempt to add support to ESP32.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-04-08 19:41:39 +02:00
Pol Henarejos
d82affa880
Added support for building emulation in Windows.
...
It has not been tested but it should not break any linux build.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-01-01 01:55:49 +01:00
Pol Henarejos
e96e1d0097
When a key is generated and stored, it creates its PRKD.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-11-13 15:33:27 +01:00
Pol Henarejos
0f12ff1c48
Added support for PRKD for AES.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-03-22 22:07:34 +01:00
Pol Henarejos
2a5fe1cc6d
Added initialization with self-signed certificate.
...
It will allow the initialization with OpenSC tool (sc-hsm-tool --initialize). However, it will not allow the use of card with SCS3, as it needs a PKI with trust chain. In this case, pico-hsm-tool.py shall be used for initialization.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-03-22 01:04:24 +01:00
Pol Henarejos
daaa5bf402
Harmonize coding style.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-02-14 23:13:46 +01:00
Pol Henarejos
89d617110f
Add asn1_build_prkd_rsa()
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-01-16 18:54:28 +01:00
Pol Henarejos
7195a8f3ec
Fix headers in emulation mode.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-01-12 20:05:46 +01:00
Pol Henarejos
aebb68724a
Removing trailing spaces.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-08-19 01:44:27 +02:00
Pol Henarejos
69120cc961
Added cvc_get_ext() to find CVC extensions.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-08-13 00:43:35 +02:00
Pol Henarejos
06aaf58f0b
Added extension optional parameter to be included in the CVC body.
...
This field should be a concatenation of tag 73, which should include an OID and a context.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-08-13 00:07:24 +02:00
Pol Henarejos
6bd2e65459
Add function for building PrKD asn1
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-06-15 15:38:11 +02:00
Pol Henarejos
914020fd36
Added PUK authentication.
...
Surprisingly, it works from the very beginning.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-06-12 17:43:50 +02:00
Pol Henarejos
3542062ecd
Added function to write the ASN1 certificate description.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-06-10 16:29:28 +02:00
Pol Henarejos
824c327a2c
Added function to obtain EC params from root CA cert.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-06-10 16:28:55 +02:00
Pol Henarejos
65482cad9c
Added dynamic public key references.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-06-10 11:09:39 +02:00
Pol Henarejos
83a583a33f
Fix CVC verification.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-06-09 19:02:22 +02:00
Pol Henarejos
08dd596883
Added cvc_get_pub().
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-06-09 14:15:35 +02:00
Pol Henarejos
4f58cd255b
Adding PUK store.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-06-08 20:01:37 +02:00
Pol Henarejos
6d8161de73
Added functions to retrieve CAR and CHR from certs.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-06-08 17:34:17 +02:00
Pol Henarejos
7b79d7ffde
Moving CVC procedures to a separate file.
2022-06-01 09:46:23 +02:00