Tests/DSA: expand test to reproduce issue identified in #1151

This commit is contained in:
terrafrost 2017-07-30 11:38:58 -05:00
parent 0b34a8e543
commit 885dc96185

View File

@ -95,6 +95,14 @@ kBniZHdFBAZBTE14YJUBkw==
$this->assertTrue($dsa->verify($message, $signature1, 'PKCS')); $this->assertTrue($dsa->verify($message, $signature1, 'PKCS'));
$this->assertTrue($dsa->verify($message, $signature2, '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() public function testSSHSignature()