Added replay protection
This commit is contained in:
parent
4ad62aaa6a
commit
44c9896883
7 changed files with 227 additions and 42 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue