[riot-notifications] [RIOT-OS/RIOT] FIDO2 support in RIOT (#16489)

Peter Kietzmann notifications at github.com
Tue Aug 24 11:19:18 CEST 2021


Tested kconfig with nrf52840dk and the changes commented [here](https://github.com/RIOT-OS/RIOT/pull/16489#discussion_r694646621) -> works.

Applied this to the test file:
```diff
diff --git a/tests/sys_fido2_ctap/main.c b/tests/sys_fido2_ctap/main.c
index 31ffbc44ef..a079ac83c6 100644
--- a/tests/sys_fido2_ctap/main.c
+++ b/tests/sys_fido2_ctap/main.c
@@ -25,12 +25,23 @@
 
 #include "xtimer.h"
 
-#include "fido2/ctap.h"
+#include "fido2/ctap/ctap.h"
+#include "fido2/ctap/transport/hid/ctap_hid.h"
 #include "fido2/ctap/transport/ctap_transport.h"
 
 int main(void)
 {
     /* sleep in order to see early DEBUG outputs */
     xtimer_sleep(3);
+    printf("CTAP_HID_TRANSACTION_TIMEOUT: %lu\n", CTAP_HID_TRANSACTION_TIMEOUT);
+    printf("CTAP_STACKSIZE: %i\n", CTAP_STACKSIZE);
+    printf("CTAP_AAGUID: %s\n", CTAP_AAGUID);
+#if IS_ACTIVE(CONFIG_FIDO2_CTAP_DISABLE_UP)
+    printf("CONFIG_FIDO2_CTAP_DISABLE_UP: %i\n", CONFIG_FIDO2_CTAP_DISABLE_UP);
+#endif
+#if IS_ACTIVE(CONFIG_FIDO2_CTAP_DISABLE_LED)
+    printf("CONFIG_FIDO2_CTAP_DISABLE_LED: %i\n", CONFIG_FIDO2_CTAP_DISABLE_LED);
+#endif
+    printf("CTAP_UP_TIMEOUT: %lu\n", CTAP_UP_TIMEOUT);
     fido2_ctap_transport_init();
 }

```

**Before config change**
```
2021-08-24 11:10:48,698 # main(): This is RIOT! (Version: 2021.01-devel-4219-g307d6-test_nils_fido)
2021-08-24 11:10:51,683 # CTAP_HID_TRANSACTION_TIMEOUT: 500000
2021-08-24 11:10:51,685 # CTAP_STACKSIZE: 15000
2021-08-24 11:10:51,689 # CTAP_AAGUID: 9c295865fa2c36b705a42320af9c8f16
2021-08-24 11:10:51,691 # CTAP_UP_TIMEOUT: 15000000
```

**After config change**
![fido_konf_change](https://user-images.githubusercontent.com/7765855/130591201-41891130-3090-4507-8c7b-509288ad2b61.png)
![fido_hid_konf_change](https://user-images.githubusercontent.com/7765855/130591217-bb86dbc2-a6cf-4a97-93d0-3b438c4d2eb2.png)

```
2021-08-24 11:12:33,548 # main(): This is RIOT! (Version: 2021.01-devel-4219-g307d6-test_nils_fido)
2021-08-24 11:12:36,532 # CTAP_HID_TRANSACTION_TIMEOUT: 543000
2021-08-24 11:12:36,534 # CTAP_STACKSIZE: 15123
2021-08-24 11:12:36,538 # CTAP_AAGUID: 66666665fa2c36b705a42320af9c8f16
2021-08-24 11:12:36,540 # CONFIG_FIDO2_CTAP_DISABLE_UP: 1
2021-08-24 11:12:36,543 # CONFIG_FIDO2_CTAP_DISABLE_LED: 1
2021-08-24 11:12:36,546 # CTAP_UP_TIMEOUT: 22000000
```




-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16489#issuecomment-904473017
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210824/26bf0589/attachment.htm>


More information about the notifications mailing list