chore: update github.com/flynn/noise to v1
This commit is contained in:
parent
1ec50360f3
commit
f4be0fe818
|
@ -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…
Reference in New Issue