Browse Source

chore: update github.com/flynn/noise to v1

pull/1462/head
Jonathan Rudenberg 4 years ago
parent
commit
f4be0fe818
  1. 2
      p2p/security/noise/crypto.go

2
p2p/security/noise/crypto.go

@ -23,7 +23,7 @@ func (s *secureSession) encrypt(out, plaintext []byte) ([]byte, error) {
if s.enc == nil {
return nil, errors.New("cannot encrypt, handshake incomplete")
}
return s.enc.Encrypt(out, nil, plaintext), nil
return s.enc.Encrypt(out, nil, plaintext)
}
// decrypt calls the cipher's decryption. It decrypts the provided ciphertext,

Loading…
Cancel
Save