Function desfire::comm_mode_most_secure

Function Documentation

constexpr comm_mode desfire::comm_mode_most_secure(comm_mode l, comm_mode r)

Returns the most secure communication mode between l and r.

Parameters:
  • l – Communication mode

  • r – Communication mode

Returns:

The most secure of the two, where comm_mode::maced beats comm_mode::plain and comm_mode::ciphered beats comm_mode::maced.