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

Nils Ollrogge notifications at github.com
Fri May 28 13:52:57 CEST 2021


@Ollrogge commented on this pull request.



> +    }
+
+    /* initialize pin_token */
+    fido2_ctap_crypto_prng(g_pin_token, sizeof(g_pin_token));
+
+    DEBUG("fido2_ctap: initialization successful \n");
+
+    return 0;
+}
+
+static void reset(void)
+{
+    g_state.initialized = CTAP_INITIALIZED_MARKER;
+    g_state.rem_pin_att = CTAP_PIN_MAX_ATTS;
+    g_state.pin_is_set = false;
+    g_state.rk_amount_stored = 0;

Yes it is. This function is only called when the authenticatorReset  method is invoked. The [CTAP](https://fidoalliance.org/specs/fido-v2.0-ps-20190130/fido-client-to-authenticator-protocol-v2.0-ps-20190130.html#authenticatorReset) spec states:
>This method is used by the client to reset an authenticator back to a factory default state, invalidating all generated credentials. [...]

-- 
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#discussion_r641489595
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210528/da945f41/attachment.htm>


More information about the notifications mailing list