-
Bug
-
Resolution: Fixed
-
Blocker
-
3.3.4
-
None
In phpbb/passwords/driver/argon21.php, line 47:
$this->threads = (defined('PASSWORD_ARGON2_PROVIDER') && PASSWORD_ARGON2_PROVIDER == 'sodium') ? $this->threads = (defined('PASSWORD_ARGON2_PROVIDER') && PASSWORD_ARGON2_PROVIDER == 'sodium') ? PASSWORD_ARGON2_DEFAULT_THREADS : max($threads, defined('PASSWORD_ARGON2_DEFAULT_THREADS') ? PASSWORD_ARGON2_DEFAULT_THREADS : 1); |
This is a problem because:
PASSWORD_ARGON2_DEFAULT_THREADS (int) |
Default number of threads that Argon2lib will use. Not available with libsodium implementation.
|
I think the solution is to default to 1 thread when
PASSWORD_ARGON2_PROVIDER == 'sodium' |
Otherwise,
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/passwords/driver/base_native.php on line 57: password_hash(): Threading failure |
- is related to
-
PHPBB-16266 Error on clean install with PHP 7.4
- Closed
-
PHPBB-16342 Update Argon2 hashing costs
- Unverified Fix