Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-05-01 16:39:13 +0300
committerGitHub <noreply@github.com>2020-05-01 16:39:13 +0300
commit8c023a657983924ab5a81c94837dd66d9892d168 (patch)
treee4eb0ee2d9015bc9c461b6253ea5f33f4e13718e /lib
parent91487d87395819a6fa052440bd582ae54abd41a0 (diff)
parent229570badfa9cef0b395e3fd55a251ff39d0ed12 (diff)
Merge pull request #20767 from nextcloud/enh/argon2id-options
Apply Argon2 options for Argon2id hashing as well
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Security/Hasher.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Security/Hasher.php b/lib/private/Security/Hasher.php
index 2ed21e7e427..a51508ba8e9 100644
--- a/lib/private/Security/Hasher.php
+++ b/lib/private/Security/Hasher.php
@@ -65,7 +65,7 @@ class Hasher implements IHasher {
public function __construct(IConfig $config) {
$this->config = $config;
- if (\defined('PASSWORD_ARGON2I')) {
+ if (\defined('PASSWORD_ARGON2ID') || \defined('PASSWORD_ARGON2I')) {
// password_hash fails, when the minimum values are undershot.
// In this case, apply minimum.
$this->options['threads'] = max($this->config->getSystemValueInt('hashingThreads', PASSWORD_ARGON2_DEFAULT_THREADS), 1);