mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 08:50:42 +02:00
internal/aead : replace miscreant with xchacha20poly1305
This commit is contained in:
parent
72922b8ee8
commit
8d84391340
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ func GenerateNonce() []byte {
|
|||
return nonce
|
||||
}
|
||||
|
||||
// Encrypt a value using AES-CMAC-SIV
|
||||
// Encrypt a value using XChaCha20-Poly1305
|
||||
func (c *XChaCha20Cipher) Encrypt(plaintext []byte) (joined []byte, err error) {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
|
@ -81,7 +81,7 @@ func (c *XChaCha20Cipher) Encrypt(plaintext []byte) (joined []byte, err error) {
|
|||
return joined, nil
|
||||
}
|
||||
|
||||
// Decrypt a value using AES-CMAC-SIV
|
||||
// Decrypt a value using XChaCha20-Poly1305
|
||||
func (c *XChaCha20Cipher) Decrypt(joined []byte) ([]byte, error) {
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue