mirror of
https://github.com/danog/phpseclib.git
synced 2024-11-27 04:46:26 +01:00
RSA: update unit test for 2.0 branch
This commit is contained in:
parent
87040bc518
commit
706dcfb8d6
@ -393,9 +393,9 @@ NNj0BDlf38hOtkhDzz/hkYb+EBYLLvldhgsD0OvRNy8yhz7EjaUqLCB0juIN4QIB
|
||||
AAIBAAIBAAIBAAIBAA==
|
||||
-----END RSA PRIVATE KEY-----';
|
||||
|
||||
$rsa = new Crypt_RSA();
|
||||
$rsa = new RSA();
|
||||
$rsa->loadKey($key);
|
||||
$rsa->setSignatureMode(CRYPT_RSA_SIGNATURE_PKCS1);
|
||||
$rsa->setSignatureMode(RSA::SIGNATURE_PKCS1);
|
||||
$rsa->setHash('md5');
|
||||
$rsa->setMGFHash('md5');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user