Class MessageReceptionStateUnencryptedWithRollover
Implements a message reception state for unencrypted messages without rollover.
Any message counter equal to max_message_counter or within the message counter window, where the corresponding bit
is set to true SHALL be considered duplicate. All other message counters, whether behind the window or ahead of
max_message_counter, are considered new and SHALL update max_message_counter and shift the window accordingly.
Messages with a counter behind the window are likely caused by a node rebooting and are thus processed as rolling
back the window to the current location.
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 unencrypted messages without rollover. Any message counter equal to max_message_counter or within the message counter window, where the corresponding bit is set to true SHALL be considered duplicate. All other message counters, whether behind the window or ahead of max_message_counter, are considered new and SHALL update max_message_counter and shift the window accordingly. Messages with a counter behind the window are likely caused by a node rebooting and are thus processed as rolling back the window to the current location.