]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/govpn/peer_test.go
Use Argon2d PHC winner instead of PBKDF2
[govpn.git] / src / govpn / peer_test.go
index 9bad8c6960a792c1ca41b766289188aa977dc1a0..c9c26475e8d7bf58d1ef7468ed1a5b1c8d273f1a 100644 (file)
@@ -26,12 +26,13 @@ func (d Dummy) Write(b []byte) (int, error) {
 
 func init() {
        MTU = 1500
-       peerId, _ = IDDecode("ffffffffffffffffffffffffffffffff")
+       id := new([IDSize]byte)
+       peerId := PeerId(*id)
        conf = &PeerConf{
-               Id:          peerId,
-               Timeout:     time.Second * time.Duration(TimeoutDefault),
-               NoiseEnable: false,
-               CPR:         0,
+               Id:      &peerId,
+               Timeout: time.Second * time.Duration(TimeoutDefault),
+               Noise:   false,
+               CPR:     0,
        }
        peer = newPeer(true, "foo", Dummy{&ciphertext}, conf, new([SSize]byte))
        plaintext = make([]byte, 789)