From 812e4047d04801263f4f9341fcc1e17a2c0f18fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 7 Jan 2025 09:25:11 +0100 Subject: [PATCH] Adjust key size in KeyGenerator to 32 bytes. Changed the key size from 128 bytes to 32 bytes in the KeyGenerator service. This aligns with the expected algorithm requirements and ensures proper cryptographic behavior. --- .../ChillDocStoreBundle/Service/Cryptography/KeyGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bundle/ChillDocStoreBundle/Service/Cryptography/KeyGenerator.php b/src/Bundle/ChillDocStoreBundle/Service/Cryptography/KeyGenerator.php index 58520b352..9956cbfa7 100644 --- a/src/Bundle/ChillDocStoreBundle/Service/Cryptography/KeyGenerator.php +++ b/src/Bundle/ChillDocStoreBundle/Service/Cryptography/KeyGenerator.php @@ -33,7 +33,7 @@ class KeyGenerator throw new \LogicException(sprintf("Algorithm '%s' is not supported.", $algo)); } - $key = $this->randomizer->getBytes(128); + $key = $this->randomizer->getBytes(32); return [ 'alg' => 'A256CBC',