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.
This commit is contained in:
2025-01-07 09:25:11 +01:00
parent 999ac3af2b
commit 812e4047d0

View File

@@ -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',