X-Git-Url: https://git.p6c8.net/jirafeau.git/blobdiff_plain/947b485e76f6a086e2c57ea606ed04ebe6e266f8..45ca48c235e1ac4634799231dff0962fce2e3fbf:/lib/functions.php diff --git a/lib/functions.php b/lib/functions.php index 3883173..b6672fb 100644 --- a/lib/functions.php +++ b/lib/functions.php @@ -1315,6 +1315,8 @@ function jirafeau_decrypt_file_legacy($fp_src, $fp_dst, $k) $crypt_key = $k; $hash_key = md5($crypt_key); $iv = jirafeau_crypt_create_iv($hash_key, mcrypt_enc_get_iv_size($m)); + /* Init module. */ + mcrypt_generic_init($m, $hash_key, $iv); /* Decrypt file. */ $r = fopen($fp_src, 'r'); $w = fopen($fp_dst, 'c');