1
0
Fork 0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-01-12 05:33:33 +02:00
Xray-core/common/antireplay/antireplay.go
yuhan6665 45dc97e2b6
Use shadowsocket's bloomring for shadowsocket's replay protection ()
* use shadowsocket's bloomring for shadowsocket's replay protection

* added shadowsockets iv check for tcp socket

* Rename to shadowsockets iv check

* shadowsocks iv check config file

* iv check should proceed after decryption

* use shadowsocket's bloomring for shadowsocket's replay protection

* Chore: format code ()

Co-authored-by: Shelikhoo <xiaokangwang@outlook.com>
Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
2021-10-22 12:38:40 +08:00

6 lines
105 B
Go

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