Variable desfire::trust_card
Defined in File tag.hpp
Variable Documentation
-
static constexpr trust_card_t desfire::trust_card = {}
Flag marking the card as trusted, which enables determining automatically the communication mode from file settings..
When using this instead of an explicitly set comm_mode (in the methods of tag that allow to do so), tag will be instructed to query and accept whatever security mode the file is written in. This might impact security because a cloned card with different file security modes could prompt for a different communication mode than the one intended. Therefore, they have to be called explicitly with
trust_card
.See also
tag::change_file_settings(file_id fid, common_file_settings const &settings, trust_card_t)
tag::read_data(file_id fid, trust_card_t, std::uint32_t offset = 0, std::uint32_t length)
tag::write_data(file_id fid, bin_data const &data, trust_card_t, std::uint32_t offset)
tag::limited_credit(file_id fid, std::int32_t amount, trust_card_t)
tag::write_record(file_id fid, bin_data const &data, trust_card_t, std::uint32_t offset)
tag::read_parse_records(file_id fid, trust_card_t, std::uint32_t index, std::uint32_t count)
tag::read_records(file_id fid, trust_card_t, std::uint32_t record_index, std::uint32_t record_count)