public bool AuthenticateBlock(int blockNumber, int keyType = MifareParam.KEY_TYPE_A, int keyNumber = 0) { AuthenticateBlockCommand authBlockCmd = new AuthenticateBlockCommand((byte) blockNumber, (byte)keyType, (byte) keyNumber); lastApduResponse = apduPlayer.ExecuteApduCommand(authBlockCmd); return lastApduResponse.Status == MifareStatus.SUCCESS; }
public bool AuthenticateBlock(int blockNumber, int keyType = MifareParam.KEY_TYPE_A, int keyNumber = 0) { AuthenticateBlockCommand authBlockCmd = new AuthenticateBlockCommand((byte)blockNumber, (byte)keyType, (byte)keyNumber); lastApduResponse = apduPlayer.ExecuteApduCommand(authBlockCmd); return(lastApduResponse.Status == MifareStatus.SUCCESS); }