mirror of
https://github.com/polhenarejos/pico-fido.git
synced 2025-12-21 05:00:13 +08:00
@@ -30,6 +30,8 @@ int cmd_register() {
|
||||
resp->keyHandleLen = KEY_HANDLE_LEN;
|
||||
if (scan_files() != CCID_OK)
|
||||
return SW_EXEC_ERROR();
|
||||
if (apdu.nc != U2F_APPID_SIZE + U2F_CHAL_SIZE)
|
||||
return SW_WRONG_LENGTH();
|
||||
if (wait_button_pressed() == true)
|
||||
return SW_CONDITIONS_NOT_SATISFIED();
|
||||
mbedtls_ecdsa_context key;
|
||||
|
||||
Reference in New Issue
Block a user