Skip to content

fix(argon2): respect max value for hashingThreads#45027

Merged
blizzz merged 1 commit into
nextcloud:masterfrom
remicollet:argon-sodium-threads
May 20, 2026
Merged

fix(argon2): respect max value for hashingThreads#45027
blizzz merged 1 commit into
nextcloud:masterfrom
remicollet:argon-sodium-threads

Conversation

@remicollet
Copy link
Copy Markdown
Contributor

@remicollet remicollet commented Apr 25, 2024

Summary

When argon2 password hashing is provided bu sodium extension, threads is not supported, so value > 1 raise an exception

See https://github.com/php/php-src/blob/PHP-8.1.28/ext/sodium/sodium_pwhash.c#L65

Threads are only supported by standard extension (libargon2) and soon by openssl extension (with OpenSSL 3.2 and PHP 8.4)

Checklist

@solracsf solracsf added the 3. to review Waiting for reviews label Apr 25, 2024
@solracsf solracsf added this to the Nextcloud 30 milestone Apr 25, 2024
@solracsf solracsf changed the title also respect max value for hashingThreads fix(argon2): respect max value for hashingThreads Apr 25, 2024
Comment thread lib/private/Security/Hasher.php
This was referenced Jul 30, 2024
@Altahrim Altahrim mentioned this pull request Aug 5, 2024
@skjnldsv skjnldsv added 2. developing Work in progress stale Ticket or PR with no recent activity and removed 3. to review Waiting for reviews labels Aug 6, 2024
@Altahrim Altahrim mentioned this pull request Aug 7, 2024
@skjnldsv skjnldsv mentioned this pull request Aug 13, 2024
@skjnldsv skjnldsv modified the milestones: Nextcloud 30, Nextcloud 31 Aug 14, 2024
@blizzz blizzz mentioned this pull request Jan 8, 2025
This was referenced Jan 14, 2025
This was referenced Jan 21, 2025
@blizzz blizzz mentioned this pull request Jan 29, 2025
1 task
@blizzz blizzz modified the milestones: Nextcloud 31, Nextcloud 32 Jan 29, 2025
This was referenced Aug 22, 2025
@nextcloud-bot nextcloud-bot mentioned this pull request Sep 2, 2025
@skjnldsv skjnldsv modified the milestones: Nextcloud 32, Nextcloud 33 Sep 28, 2025
@nextcloud-bot nextcloud-bot mentioned this pull request Jan 7, 2026
@Altahrim Altahrim force-pushed the argon-sodium-threads branch from abef80a to 2be8c3f Compare January 8, 2026 09:45
@Altahrim Altahrim requested a review from a team as a code owner January 8, 2026 09:45
@Altahrim Altahrim requested review from ArtificialOwl, artonge, salmart-dev and yemkareems and removed request for a team January 8, 2026 09:45
This was referenced Jan 9, 2026
This was referenced Jan 20, 2026
This was referenced Jan 29, 2026
This was referenced Feb 11, 2026
@blizzz blizzz modified the milestones: Nextcloud 33, Nextcloud 34 Feb 16, 2026
@susnux susnux force-pushed the argon-sodium-threads branch from 2be8c3f to 3d2ae74 Compare May 19, 2026 18:43
Co-authored-by: Remi Collet <remi@php.net>
Signed-off-by: Remi Collet <remi@remirepo.net>
@susnux susnux force-pushed the argon-sodium-threads branch from 3d2ae74 to eb32f1d Compare May 19, 2026 18:45
@susnux
Copy link
Copy Markdown
Contributor

susnux commented May 19, 2026

(rebased + added psalm-suppress comment)

@susnux susnux modified the milestones: Nextcloud 34, Nextcloud 35 May 19, 2026
@blizzz blizzz merged commit b5216aa into nextcloud:master May 20, 2026
193 of 200 checks passed
@welcome
Copy link
Copy Markdown

welcome Bot commented May 20, 2026

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress bug stale Ticket or PR with no recent activity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants