mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-05 21:17:53 +00:00
Tests/DSA: expand test to reproduce issue identified in #1151
This commit is contained in:
parent
0b34a8e543
commit
885dc96185
@ -95,6 +95,14 @@ kBniZHdFBAZBTE14YJUBkw==
|
||||
|
||||
$this->assertTrue($dsa->verify($message, $signature1, 'PKCS'));
|
||||
$this->assertTrue($dsa->verify($message, $signature2, 'PKCS'));
|
||||
|
||||
$signature = $dsa->sign($message, 'SSH2');
|
||||
|
||||
$pubKey = $dsa->getPublicKey();
|
||||
|
||||
$dsa = new DSA();
|
||||
$dsa->load($pubKey);
|
||||
$this->assertTrue($dsa->verify($message, $signature, 'SSH2'));
|
||||
}
|
||||
|
||||
public function testSSHSignature()
|
||||
|
Loading…
Reference in New Issue
Block a user