mirror of
https://github.com/danog/tgseclib.git
synced 2024-12-02 17:48:00 +01:00
Tests/RSA: update unit test for master branch changes
This commit is contained in:
parent
5714875b71
commit
80e9d663cf
@ -548,11 +548,10 @@ AAIBAAIBAAIBAAIBAA==
|
||||
-----END RSA PRIVATE KEY-----';
|
||||
|
||||
$rsa = new RSA();
|
||||
$rsa->loadKey($key);
|
||||
$rsa->setSignatureMode(RSA::SIGNATURE_PKCS1);
|
||||
$rsa->load($key);
|
||||
$rsa->setHash('md5');
|
||||
$rsa->setMGFHash('md5');
|
||||
|
||||
$rsa->sign('zzzz');
|
||||
$rsa->sign('zzzz', RSA::PADDING_PKCS1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user