Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 675d463

Browse files
committed
bug #32170 [Security/Core] Don't use ParagonIE_Sodium_Compat (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [Security/Core] Don't use ParagonIE_Sodium_Compat | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This is dead code: https://github.com/paragonie/sodium_compat#features-excluded-from-this-polyfill Commits ------- 61ea53d [Security/Core] Don't use ParagonIE_Sodium_Compat
2 parents 57d73fc + 61ea53d commit 675d463

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/Security/Core/Encoder/Argon2iPasswordEncoder.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ public static function isSupported()
2626
return true;
2727
}
2828

29-
if (class_exists('ParagonIE_Sodium_Compat') && method_exists('ParagonIE_Sodium_Compat', 'crypto_pwhash_is_available')) {
30-
return \ParagonIE_Sodium_Compat::crypto_pwhash_is_available();
31-
}
32-
3329
return \function_exists('sodium_crypto_pwhash_str') || \extension_loaded('libsodium');
3430
}
3531

0 commit comments

Comments
 (0)