Documentation
¶
Overview ¶
Package replay implements an efficient anti-replay algorithm as specified in RFC 6479.
Index ¶
Constants ¶
View Source
const ( // RekeyAfterMessages is the maximum number of messages that can be sent before rekeying. RekeyAfterMessages = (1 << 60) // RejectAfterMessages is the maximum number of messages that can be accepted before rejecting further messages. RejectAfterMessages = (1 << 64) - (1 << 13) - 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter rejects replayed messages by checking if message counter value is within a sliding window of previously received messages. The zero value for Filter is an empty, ready-to-use, thread-safe filter.
func (*Filter) ValidateCounter ¶
ValidateCounter checks if the counter should be accepted. Overlimit counters (>= limit) are always rejected.
Click to show internal directories.
Click to hide internal directories.