From c82cc0defe8e7efb544fb62b8275d02442568138 Mon Sep 17 00:00:00 2001 From: Scott Date: Fri, 20 Nov 2015 16:03:43 -0500 Subject: [PATCH] Increase HKDF-SHA256 salt size to 256 bits --- src/Crypto.php | 2 +- src/File.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Crypto.php b/src/Crypto.php index 6a38bd4..2ae39b3 100755 --- a/src/Crypto.php +++ b/src/Crypto.php @@ -467,7 +467,7 @@ protected static function getVersionConfigFromMajorMinor($major, $minor) 'cipher_method' => 'aes-256-ctr', 'block_byte_size' => 16, 'key_byte_size' => 32, - 'salt_byte_size' => 16, + 'salt_byte_size' => 32, 'hash_function_name' => 'sha256', 'mac_byte_size' => 32, 'encryption_info_string' => 'DefusePHP|V2|KeyForEncryption', diff --git a/src/File.php b/src/File.php index 3db66bb..814a151 100644 --- a/src/File.php +++ b/src/File.php @@ -781,7 +781,7 @@ private static function getFileVersionConfigFromMajorMinor($major, $minor) 'cipher_method' => 'aes-256-ctr', 'block_byte_size' => 16, 'key_byte_size' => 32, - 'salt_byte_size' => 16, + 'salt_byte_size' => 32, 'hash_function_name' => 'sha256', 'mac_byte_size' => 32, 'encryption_info_string' => 'DefusePHP|V2File|KeyForEncryption',