1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-12 20:59:50 +04:00

Fix Ultralight EV1 regression (#4287)

* Fix EV1 regression introduced in e7634d7

* ./fbt format

---------

Co-authored-by: hedger <hedger@users.noreply.github.com>
Co-authored-by: hedger <hedger@nanode.su>
This commit is contained in:
Nathan N
2025-11-06 14:05:16 -05:00
committed by GitHub
parent a42e30f394
commit c873eb5e36

View File

@@ -152,15 +152,18 @@ static NfcCommand
if(!mf_ultralight_event->data->auth_context.skip_auth) { if(!mf_ultralight_event->data->auth_context.skip_auth) {
mf_ultralight_event->data->auth_context.password = instance->mf_ul_auth->password; mf_ultralight_event->data->auth_context.password = instance->mf_ul_auth->password;
if(data->type == MfUltralightTypeMfulC) {
// Only set tdes_key for Manual/Reader auth types, not for dictionary attacks // Only set tdes_key for Manual/Reader auth types, not for dictionary attacks
if(instance->mf_ul_auth->type == MfUltralightAuthTypeManual || if(instance->mf_ul_auth->type == MfUltralightAuthTypeManual ||
instance->mf_ul_auth->type == MfUltralightAuthTypeReader) { instance->mf_ul_auth->type == MfUltralightAuthTypeReader) {
mf_ultralight_event->data->key_request_data.key = instance->mf_ul_auth->tdes_key; mf_ultralight_event->data->key_request_data.key =
instance->mf_ul_auth->tdes_key;
mf_ultralight_event->data->key_request_data.key_provided = true; mf_ultralight_event->data->key_request_data.key_provided = true;
} else { } else {
mf_ultralight_event->data->key_request_data.key_provided = false; mf_ultralight_event->data->key_request_data.key_provided = false;
} }
} }
}
} else if(mf_ultralight_event->type == MfUltralightPollerEventTypeAuthSuccess) { } else if(mf_ultralight_event->type == MfUltralightPollerEventTypeAuthSuccess) {
instance->mf_ul_auth->pack = mf_ultralight_event->data->auth_context.pack; instance->mf_ul_auth->pack = mf_ultralight_event->data->auth_context.pack;
} }