Template Function desfire::set_key_version

Function Documentation

template<class Container>
void desfire::set_key_version(Container &c, std::uint8_t v)

Unpacks the byte v, bit by bit, onto the least significant bit of each element of c. This will overwrite the lsb of the first 8 elements of c.

Template Parameters:

Container – Any container that is range-enumerable of std::uint8_t.

Parameters:
  • c – Container of the key body.

  • v – Version byte.