Template Function desfire::get_key_version
Defined in File crypto_algo.hpp
Function Documentation
-
template<class Container>
std::uint8_t desfire::get_key_version(Container const &c) Unpacks all the least significant bits in the elements of
c
, in order, into a version byte. The return value is made up by the sequence of the lsb of the first 8 elements ofc
.- Template Parameters:
Container – Any container that is range-enumerable of
std::uint8_t
.- Parameters:
c – Container of the key body.
- Returns:
The least significant bits, in order.