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
@@ -38,6 +38,7 @@ func (c aesCfbCipher) Encrypt(_ context.Context, payload []byte, secret string)
return nil, err
}
//nolint:staticcheck
stream := cipher.NewCFBEncrypter(block, iv)
stream.XORKeyStream(ciphertext[encryption.SaltLength+aes.BlockSize:], payload)
@@ -59,6 +59,7 @@ func decryptCFB(block cipher.Block, payload []byte) ([]byte, error) {
payload = payload[encryption.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.