X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/947b485e76f6a086e2c57ea606ed04ebe6e266f8..93d87c13b5169a0a61e3906af13cf07ec8ae2a58:/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');