Files
wireguard-go/src/peer.go
T

21 lines
310 B
Go
Raw Normal View History

2017-05-30 22:36:49 +02:00
package main
import (
2017-06-01 21:31:30 +02:00
"net"
2017-05-30 22:36:49 +02:00
"sync"
)
type KeyPair struct {
recieveKey NoiseSymmetricKey
recieveNonce NoiseNonce
sendKey NoiseSymmetricKey
sendNonce NoiseNonce
}
type Peer struct {
mutex sync.RWMutex
publicKey NoisePublicKey
presharedKey NoiseSymmetricKey
2017-06-01 21:31:30 +02:00
endpoint net.IP
2017-05-30 22:36:49 +02:00
}