antireplay

package
v1.8.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2024 License: MPL-2.0 Imports: 4 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BloomRing added in v1.5.1

type BloomRing struct {
	*ss_bloomring.BloomRing
	// contains filtered or unexported fields
}

func NewBloomRing added in v1.5.1

func NewBloomRing() BloomRing

func (BloomRing) Check added in v1.5.1

func (b BloomRing) Check(sum []byte) bool

func (BloomRing) Interval added in v1.5.1

func (b BloomRing) Interval() int64

type GeneralizedReplayFilter added in v1.5.1

type GeneralizedReplayFilter interface {
	Interval() int64
	Check(sum []byte) bool
}

type ReplayFilter

type ReplayFilter struct {
	// contains filtered or unexported fields
}

ReplayFilter checks for replay attacks.

func NewReplayFilter

func NewReplayFilter(interval int64) *ReplayFilter

NewReplayFilter create a new filter with specifying the expiration time interval in seconds.

func (*ReplayFilter) Check

func (filter *ReplayFilter) Check(sum []byte) bool

Check determines if there are duplicate records.

func (*ReplayFilter) Interval

func (filter *ReplayFilter) Interval() int64

Interval in second for expiration time for duplicate records.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL