Skip to content

Commit

Permalink
[Security/Core] Don't use ParagonIE_Sodium_Compat
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Jun 25, 2019
1 parent 57d73fc commit 61ea53d
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -26,10 +26,6 @@ public static function isSupported()
return true;
}

if (class_exists('ParagonIE_Sodium_Compat') && method_exists('ParagonIE_Sodium_Compat', 'crypto_pwhash_is_available')) {
return \ParagonIE_Sodium_Compat::crypto_pwhash_is_available();
}

return \function_exists('sodium_crypto_pwhash_str') || \extension_loaded('libsodium');
}

Expand Down

0 comments on commit 61ea53d

Please sign in to comment.