Chore: update workspace (#102759)

* Chore: update workspace

* fix: ignore deprecation warnings
This commit is contained in:
Mariell Hoversholm
2025-03-25 11:20:23 +02:00
committed by GitHub
parent 9dbcb3a066
commit 3aa3371f58
8 changed files with 11 additions and 7 deletions
+2
View File
@@ -102,6 +102,7 @@ func decryptCFB(block cipher.Block, payload []byte) ([]byte, error) {
payload = payload[saltLength+aes.BlockSize:]
payloadDst := make([]byte, len(payload))
//nolint:staticcheck
stream := cipher.NewCFBDecrypter(block, iv)
// XORKeyStream can work in-place if the two arguments are the same.
@@ -136,6 +137,7 @@ func Encrypt(payload []byte, secret string) ([]byte, error) {
return nil, err
}
//nolint:staticcheck
stream := cipher.NewCFBEncrypter(block, iv)
stream.XORKeyStream(ciphertext[saltLength+aes.BlockSize:], payload)