X-Git-Url: https://git.p6c8.net/jirafeau_project.git/blobdiff_plain/947b485e76f6a086e2c57ea606ed04ebe6e266f8..2bb1ead1cd3ab790a8c9ea1a458d58e5a245ccd0:/lib/functions.php?ds=sidebyside 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');