Template Function desfire::lshift_sequence

Function Documentation

template<class It>
void desfire::lshift_sequence(It begin, It end, unsigned lshift)

Performs a left shift across a sequence of integers, where the bits carry over across elements. E.g. The sequence 0x00 0xff shifted by one is 0x01 0xfe.

Template Parameters:

It – A forward iterator yielding an unsigned integer type.

Parameters:
  • begin – Iterator to the first element of the sequence.

  • end – Iterator to past-the-end of the sequence.

  • lshift – Amount of bits to left shift.