Function desfire::compute_crc16(std::uint8_t, std::uint16_t)

Function Documentation

std::uint16_t desfire::compute_crc16(std::uint8_t data, std::uint16_t init = crc16_init)
Parameters:
  • data – Sequence for which to compute the CRC (or a single byte).

  • init – Initial value for the CRC

Returns:

init + CRC(data).