mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-20 20:47:16 +02:00
development: use golangci-lint
This commit is contained in:
parent
ab94b49ca6
commit
b85f8de05f
35 changed files with 292 additions and 115 deletions
|
@ -89,7 +89,7 @@ func (c *XChaCha20Cipher) Encrypt(plaintext []byte) (joined []byte, err error) {
|
|||
ciphertext := c.aead.Seal(nil, nonce, plaintext, nil)
|
||||
|
||||
// we return the nonce as part of the returned value
|
||||
joined = append(ciphertext[:], nonce[:]...)
|
||||
joined = append(ciphertext, nonce...)
|
||||
return joined, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue