Project

General

Profile

Actions

Bug #24410

closed

Parameter for function "mcrypt_create_iv" not correct

Added by Wim Roukema almost 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2010-12-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.4
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In a Windows environment the parameter "MCRYPT_DEV_URANDOM" is unknown. This parameter is defined in class.t3lib_div.php on line 1679.

The problem is solved by changing the parameter to: MCRYPT_RAND.

Complete statement:
$output = mcrypt_create_iv($count, MCRYPT_DEV_URANDOM);
changed to
$output = mcrypt_create_iv($count, MCRYPT_RAND);

(issue imported from #M16837)


Files

16837.diff (689 Bytes) 16837.diff Administrator Admin, 2010-12-29 19:35
16837_v2.diff (580 Bytes) 16837_v2.diff Administrator Admin, 2010-12-29 19:56
16837_v3.diff (720 Bytes) 16837_v3.diff Administrator Admin, 2010-12-30 11:21
16837_v3a.diff (734 Bytes) 16837_v3a.diff Administrator Admin, 2010-12-30 11:24
16837_v4.diff (1.02 KB) 16837_v4.diff Administrator Admin, 2010-12-30 11:50
test_mcrypt_randoms.php (773 Bytes) test_mcrypt_randoms.php Tomasz Krawczyk, 2011-08-24 11:35

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #22369: Mitigate PHP's RNG vulnerabilityClosedHelmut Hummel2010-04-01

Actions
Related to TYPO3 Core - Bug #24440: Improve the used random generators on *nix platformsClosedSteffen Gebert2010-12-29

Actions
Related to TYPO3 Core - Bug #23355: Speed up / restructure of random byte generator to address e.g. WIN OS specificsClosed2010-08-05

Actions
Has duplicate TYPO3 Core - Bug #24439: TYPO3 fails to install on Windows due to faulty disposal of MCRYPT_DEV_URANDOMClosedSteffen Gebert2010-12-29

Actions
Actions

Also available in: Atom PDF