mirror of
https://git.zx2c4.com/wireguard-go
synced 2024-11-15 01:05:15 +01:00
19 lines
282 B
Go
19 lines
282 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"sync"
|
||
|
)
|
||
|
|
||
|
type KeyPair struct {
|
||
|
recieveKey NoiseSymmetricKey
|
||
|
recieveNonce NoiseNonce
|
||
|
sendKey NoiseSymmetricKey
|
||
|
sendNonce NoiseNonce
|
||
|
}
|
||
|
|
||
|
type Peer struct {
|
||
|
mutex sync.RWMutex
|
||
|
publicKey NoisePublicKey
|
||
|
presharedKey NoiseSymmetricKey
|
||
|
}
|