From 885dc96185187d1d549b642fb178ff29b53cd5ab Mon Sep 17 00:00:00 2001 From: terrafrost Date: Sun, 30 Jul 2017 11:38:58 -0500 Subject: [PATCH] Tests/DSA: expand test to reproduce issue identified in #1151 --- tests/Unit/Crypt/DSA/SignatureTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/Unit/Crypt/DSA/SignatureTest.php b/tests/Unit/Crypt/DSA/SignatureTest.php index 0399c56a..8ba19de5 100644 --- a/tests/Unit/Crypt/DSA/SignatureTest.php +++ b/tests/Unit/Crypt/DSA/SignatureTest.php @@ -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()