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