Skip to content

Commit

Permalink
Merge pull request #95 from titanous/update-noise
Browse files Browse the repository at this point in the history
Update github.com/flynn/noise to address nonce handling security issues
  • Loading branch information
Stebalien authored May 5, 2021
2 parents 87420da + f4be0fe commit 9832fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/security/noise/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9832fde

Please sign in to comment.