diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-10 12:09:19 +0200 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-07-10 12:09:19 +0200 |
commit | 44c98968838e1724d1ee77f086c4498f2a3f7643 (patch) | |
tree | a3820a9366025b634158c68e9711a2d241d87afa /src/keypair.go | |
parent | 4ad62aaa6aa269f08c0fdc9c139e6d5417e21746 (diff) |
Added replay protection
Diffstat (limited to 'src/keypair.go')
-rw-r--r-- | src/keypair.go | 15 |
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 { |