Files
wireguard-go/src/peer.go
T

19 lines
282 B
Go
Raw Normal View History

2017-05-30 22:36:49 +02:00
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
}