From d61f4e1b3b96da51056889c6340d2e935d7e9972 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Mon, 25 May 2015 00:29:20 +0200 Subject: [PATCH] Double -> single MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- inc/classes/main/scrypt/class_Scrypt.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/classes/main/scrypt/class_Scrypt.php b/inc/classes/main/scrypt/class_Scrypt.php index 8f4891d0..bcbc5b3e 100644 --- a/inc/classes/main/scrypt/class_Scrypt.php +++ b/inc/classes/main/scrypt/class_Scrypt.php @@ -131,15 +131,15 @@ abstract class Scrypt extends BaseFrameworkSystem public static function hashScrypt($password, $salt = false, $N = 16384, $r = 8, $p = 1) { if ($N == 0 || ($N & ($N - 1)) != 0) { - throw new \InvalidArgumentException("N must be > 0 and a power of 2"); + throw new \InvalidArgumentException('N must be > 0 and a power of 2'); } if ($N > PHP_INT_MAX / 128 / $r) { - throw new \InvalidArgumentException("Parameter N is too large"); + throw new \InvalidArgumentException('Parameter N is too large'); } if ($r > PHP_INT_MAX / 128 / $p) { - throw new \InvalidArgumentException("Parameter r is too large"); + throw new \InvalidArgumentException('Parameter r is too large'); } if ($salt === false) { -- 2.39.2