mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-13 18:02:58 +00:00
Merge branch '2.0'
This commit is contained in:
commit
5714875b71
@ -547,9 +547,9 @@ NNj0BDlf38hOtkhDzz/hkYb+EBYLLvldhgsD0OvRNy8yhz7EjaUqLCB0juIN4QIB
|
|||||||
AAIBAAIBAAIBAAIBAA==
|
AAIBAAIBAAIBAAIBAA==
|
||||||
-----END RSA PRIVATE KEY-----';
|
-----END RSA PRIVATE KEY-----';
|
||||||
|
|
||||||
$rsa = new Crypt_RSA();
|
$rsa = new RSA();
|
||||||
$rsa->loadKey($key);
|
$rsa->loadKey($key);
|
||||||
$rsa->setSignatureMode(CRYPT_RSA_SIGNATURE_PKCS1);
|
$rsa->setSignatureMode(RSA::SIGNATURE_PKCS1);
|
||||||
$rsa->setHash('md5');
|
$rsa->setHash('md5');
|
||||||
$rsa->setMGFHash('md5');
|
$rsa->setMGFHash('md5');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user