summaryrefslogtreecommitdiff
path: root/src/keypair.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-10 12:09:19 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-07-10 12:09:19 +0200
commit44c98968838e1724d1ee77f086c4498f2a3f7643 (patch)
treea3820a9366025b634158c68e9711a2d241d87afa /src/keypair.go
parent4ad62aaa6aa269f08c0fdc9c139e6d5417e21746 (diff)
downloadwireguard-go-44c98968838e1724d1ee77f086c4498f2a3f7643.tar.gz
wireguard-go-44c98968838e1724d1ee77f086c4498f2a3f7643.zip
Added replay protection
Diffstat (limited to 'src/keypair.go')
-rw-r--r--src/keypair.go15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/keypair.go b/src/keypair.go
index b24dbe4..b5f46df 100644
--- a/src/keypair.go
+++ b/src/keypair.go
@@ -7,13 +7,14 @@ import (
)
type KeyPair struct {
- receive cipher.AEAD
- send cipher.AEAD
- sendNonce uint64
- isInitiator bool
- created time.Time
- localIndex uint32
- remoteIndex uint32
+ receive cipher.AEAD
+ replayFilter ReplayFilter
+ send cipher.AEAD
+ sendNonce uint64
+ isInitiator bool
+ created time.Time
+ localIndex uint32
+ remoteIndex uint32
}
type KeyPairs struct {