From 8cc91062bc40714d35015bcfc6857947d5f211fc Mon Sep 17 00:00:00 2001 From: Omer Zidkoni <50792403+omerzi@users.noreply.github.com> Date: Sun, 8 Sep 2024 16:31:50 +0300 Subject: [PATCH] Add safe integer conversion functions --- crypto/aes_encryption.go | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/aes_encryption.go b/crypto/aes_encryption.go index c23841d..870992e 100644 --- a/crypto/aes_encryption.go +++ b/crypto/aes_encryption.go @@ -51,6 +51,7 @@ func decrypt(ciphertext []byte, key []byte) (string, error) { //#nosec G407 nonce, ciphertext := ciphertext[:nonceSize], ciphertext[nonceSize:] + //#nosec G407 decryptedBytes, err := gcm.Open(nil, nonce, ciphertext, nil) return string(decryptedBytes), err }