Implements a message reception state for encrypted messages with rollover.
A message counter with rollover is a free running message counter that monotonically increases, but rolls
over to zero when it exceeds the maximum value of the counter (32-bits). If the difference is below 2^31 then it is
considered a rollover and not a smaller value
Calculate plain diff without rollover.
This method is mainly overridden for other counter types and follow the following semantic
Return number is:
negative if the new message counter is smaller than the current maximum. Smaller values within the Window size
are check separately within the window. Other smaller values are considered DUPLICATE
positive if the new message counter is larger than the current maximum and are always NEW
Parameters
messageCounter: number
Returns number
updateMessageCounter
updateMessageCounter(messageCounter): void
Returns true if the message counter is a duplicate.
Implements a message reception state for encrypted messages with rollover. A message counter with rollover is a free running message counter that monotonically increases, but rolls over to zero when it exceeds the maximum value of the counter (32-bits). If the difference is below 2^31 then it is considered a rollover and not a smaller value