Skip to content

Commit

Permalink
Fix: Mifare Desfire: Incorrect KeySettings
Browse files Browse the repository at this point in the history
  • Loading branch information
c3rebro committed Jul 25, 2022
1 parent 67178b9 commit 661aff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions RFiDGear/DataAccessLayer/Remote/FromIO/RFiDDevice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1954,9 +1954,7 @@ public ERROR CreateMifareDesfireApplication(string _piccMasterKey, DESFireKeySet
cmd.Authenticate(0, aiToUse.MasterCardKey);
}

DESFireKeySettings ks = DESFireKeySettings.KS_CHANGE_KEY_WITH_MK | DESFireKeySettings.KS_FREE_LISTING_WITHOUT_MK | DESFireKeySettings.KS_FREE_CREATE_DELETE_WITHOUT_MK | DESFireKeySettings.KS_CONFIGURATION_CHANGEABLE;

cmd.CreateApplicationEV1((uint)_appID, ks, (byte)_maxNbKeys, false, _keyTypeTargetApplication, 0, 0);
cmd.CreateApplicationEV1((uint)_appID, _keySettingsTarget, (byte)_maxNbKeys, false, _keyTypeTargetApplication, 0, 0);

return ERROR.NoError;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ public DESFireKeyType SelectedDesfireWriteKeyEncryptionType
#region Commands

/// <summary>
/// return new RelayCommand<RFiDDevice>((_device) => OnNewCreateAppCommand(_device));
///
/// </summary>
public ICommand CreateAppCommand => new RelayCommand(OnNewCreateAppCommand);
private void OnNewCreateAppCommand()
Expand Down

0 comments on commit 661aff1

Please sign in to comment.