mirror of
https://git.zx2c4.com/wireguard-go
synced 2025-10-15 21:20:39 +08:00
Begin work on outbound packet flow
This commit is contained in:
@@ -2,11 +2,20 @@ package main
|
||||
|
||||
import (
|
||||
"crypto/cipher"
|
||||
"sync"
|
||||
)
|
||||
|
||||
type KeyPair struct {
|
||||
recv cipher.AEAD
|
||||
recvNonce NoiseNonce
|
||||
recvNonce uint64
|
||||
send cipher.AEAD
|
||||
sendNonce NoiseNonce
|
||||
sendNonce uint64
|
||||
}
|
||||
|
||||
type KeyPairs struct {
|
||||
mutex sync.RWMutex
|
||||
current *KeyPair
|
||||
previous *KeyPair
|
||||
next *KeyPair
|
||||
newKeyPair chan bool
|
||||
}
|
||||
|
Reference in New Issue
Block a user