From 40ed3e9d5ecb8ebc1086623e9133d14063da1b73 Mon Sep 17 00:00:00 2001 From: offsoc <139764790+offsoc@users.noreply.github.com> Date: Sun, 12 Jan 2025 00:00:11 +0800 Subject: [PATCH] Fix code scanning alert no. 10: Use of a cryptographic algorithm with insufficient key size Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .../textsecuregcm/controllers/AttachmentControllerV4Test.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/test/java/org/whispersystems/textsecuregcm/controllers/AttachmentControllerV4Test.java b/service/src/test/java/org/whispersystems/textsecuregcm/controllers/AttachmentControllerV4Test.java index a01bf5804..f6f7e6a7d 100644 --- a/service/src/test/java/org/whispersystems/textsecuregcm/controllers/AttachmentControllerV4Test.java +++ b/service/src/test/java/org/whispersystems/textsecuregcm/controllers/AttachmentControllerV4Test.java @@ -70,7 +70,7 @@ class AttachmentControllerV4Test { static { try { final KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA"); - keyPairGenerator.initialize(1024); + keyPairGenerator.initialize(2048); final KeyPair keyPair = keyPairGenerator.generateKeyPair(); RSA_PRIVATE_KEY_PEM = "-----BEGIN PRIVATE KEY-----\n" +