Pol Henarejos
6c74db9763
Fix warnings.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-08-23 13:17:51 +02:00
Pol Henarejos
f49833291f
Major refactor of USB CCID and USB HID interfaces.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-08-23 10:04:00 +02:00
Pol Henarejos
a9799dc77f
Fix CBOR error.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-08-19 13:12:04 +02:00
Pol Henarejos
1b4dd9bed0
Fix ESP32 build.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2024-08-18 23:53:18 +02:00
Pol Henarejos
849221fd95
Added backfall compatibility.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-11-21 12:02:30 +01:00
Pol Henarejos
9c90095e96
CBOR errors are not sent through CTAPHID_ERROR command, but in CBOR response instead. Fixes #16
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-09-18 01:36:47 +02:00
Pol Henarejos
332debea6d
Code style.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-09-17 19:11:39 +02:00
Pol Henarejos
be44947475
Fix writing COSE key when for curves with kty=1.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-08-18 12:43:49 +02:00
Pol Henarejos
4c3042a8bf
Added function for reading COSE keys.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-08-17 01:30:49 +02:00
Pol Henarejos
63e15b19bb
Added functions for writing COSE keys.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-08-17 01:19:27 +02:00
Pol Henarejos
51cbfe5fe9
Fix enabled cap detection when applet is already selected.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-08-14 21:09:54 +02:00
Pol Henarejos
8b2be54ede
Update code style.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-03-04 14:05:30 +01:00
Pol Henarejos
03f29f5be6
Fix cbor processing when unknown command is used.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-03-03 00:23:12 +01:00
Pol Henarejos
6d9208f434
Added support for Fido emulation to automatize tests.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-03-02 22:05:04 +01:00
Pol Henarejos
4f33d999e3
Adjusting code to work with the emulated interface.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2023-01-09 18:07:41 +01:00
Pol Henarejos
b1fdb9b1d1
Cleaning unused includes.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-12-30 19:39:01 +01:00
Pol Henarejos
545860ccbc
Update some functions to the newer Pico HSM SDK.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-12-20 23:42:06 +01:00
Pol Henarejos
9bcfacfe08
Fix calling large blobs.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-12-14 23:51:03 +01:00
Pol Henarejos
aa4255b875
Add large blob command to cbor.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-12-14 19:41:19 +01:00
Pol Henarejos
ae42e28384
Added support for credMgmt preview, despite this info is not broadcasted.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-11-28 18:27:52 +01:00
Pol Henarejos
e21d985344
Adding support for specific vendor HID command (0x41).
...
It is a self implementation, based on CBOR command.
data[0] conveys the command and the contents mapped in CBOR encoding.
The map uses the authConfig template, where the fist item in the map is the subcommand (enable/disable at this moment), the second is a map of the parameters, the third and fourth are the pinUvParam and pinUvProtocol.
With this format only a single vendor HID command is necessary (0x41), which will be used for all my own commands, by using the command id in data[0] like with CBOR.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-10-29 19:41:00 +02:00
Pol Henarejos
4425722a71
Adding support for CBOR CONFIG.
...
This first support includes a vendor command for encrypting the key device with external key.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-10-17 17:37:39 +02:00
Pol Henarejos
6a077d0d8f
Enabling credential management.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-10-04 16:58:49 +02:00
Pol Henarejos
cc0a181f75
Renaming authenticator selection.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-09-28 12:02:52 +02:00
Pol Henarejos
da577b8e8d
Debug all CBOR.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-09-27 22:09:25 +02:00
Pol Henarejos
0ec563c8de
Adding authenticatorSelection 0x0B support.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-09-27 12:24:22 +02:00
Pol Henarejos
f045ec8d03
card_init_core1() shall be called from every thread launched on core1.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-09-22 19:24:07 +02:00
Pol Henarejos
226fcc5405
Fixing next get assertion.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-09-21 23:44:47 +02:00
Pol Henarejos
99fc76a385
Finalizing get assertion.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-09-21 14:29:28 +02:00
Pol Henarejos
3dc7af05c1
More fixes.
2022-09-20 15:07:48 +02:00
Pol Henarejos
a3c60f762d
Reorganizing core0/core1 split.
...
Now CBOR and APDU (i.e., intensive processing) areas are executed on core1, while core0 is dedicated for hardware tasks (usb, button, led, etc.).
2022-09-20 14:39:59 +02:00
Pol Henarejos
ee8f3a0965
Adding support for clientPIN.
...
It does not pass the tests yet.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-09-19 17:20:52 +02:00
Pol Henarejos
9b49d39ccc
Scan files at the beginning.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-09-16 00:49:25 +02:00
Pol Henarejos
3873303309
Refactor CTAP2 file structure.
...
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es >
2022-09-15 14:16:12 +02:00