File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
applications/main/nfc/helpers/protocol_support/mf_ultralight Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -152,13 +152,15 @@ static NfcCommand
152
152
if (!mf_ultralight_event -> data -> auth_context .skip_auth ) {
153
153
mf_ultralight_event -> data -> auth_context .password = instance -> mf_ul_auth -> password ;
154
154
155
- // Only set tdes_key for Manual/Reader auth types, not for dictionary attacks
156
- if (instance -> mf_ul_auth -> type == MfUltralightAuthTypeManual ||
157
- instance -> mf_ul_auth -> type == MfUltralightAuthTypeReader ) {
158
- mf_ultralight_event -> data -> key_request_data .key = instance -> mf_ul_auth -> tdes_key ;
159
- mf_ultralight_event -> data -> key_request_data .key_provided = true;
160
- } else {
161
- mf_ultralight_event -> data -> key_request_data .key_provided = false;
155
+ if (data -> type == MfUltralightTypeMfulC ) {
156
+ // Only set tdes_key for Manual/Reader auth types, not for dictionary attacks
157
+ if (instance -> mf_ul_auth -> type == MfUltralightAuthTypeManual ||
158
+ instance -> mf_ul_auth -> type == MfUltralightAuthTypeReader ) {
159
+ mf_ultralight_event -> data -> key_request_data .key = instance -> mf_ul_auth -> tdes_key ;
160
+ mf_ultralight_event -> data -> key_request_data .key_provided = true;
161
+ } else {
162
+ mf_ultralight_event -> data -> key_request_data .key_provided = false;
163
+ }
162
164
}
163
165
}
164
166
} else if (mf_ultralight_event -> type == MfUltralightPollerEventTypeAuthSuccess ) {
You can’t perform that action at this time.
0 commit comments