Added replay protection

This commit is contained in:
Mathias Hall-Andersen
2017-07-10 12:09:19 +02:00
parent 4ad62aaa6a
commit 44c9896883
7 changed files with 227 additions and 42 deletions

View File

@@ -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 {