mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-15 17:57:12 +00:00
Merge branch '3.0'
This commit is contained in:
commit
ed0f7cc9f6
@ -935,6 +935,9 @@ abstract class RSA extends AsymmetricKey
|
|||||||
*/
|
*/
|
||||||
public function getEngine()
|
public function getEngine()
|
||||||
{
|
{
|
||||||
|
if (!isset(self::$engines['PHP'])) {
|
||||||
|
self::useBestEngine();
|
||||||
|
}
|
||||||
return self::$engines['OpenSSL'] && self::$defaultExponent == 65537 ?
|
return self::$engines['OpenSSL'] && self::$defaultExponent == 65537 ?
|
||||||
'OpenSSL' :
|
'OpenSSL' :
|
||||||
'PHP';
|
'PHP';
|
||||||
|
Loading…
Reference in New Issue
Block a user