diff options
Diffstat (limited to 'test/openssl')
-rw-r--r-- | test/openssl/test_pkey_dsa.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/openssl/test_pkey_dsa.rb b/test/openssl/test_pkey_dsa.rb index 5b3eaa9abe..725937464d 100644 --- a/test/openssl/test_pkey_dsa.rb +++ b/test/openssl/test_pkey_dsa.rb @@ -22,6 +22,14 @@ class OpenSSL::TestPKeyDSA < Test::Unit::TestCase assert_equal([], OpenSSL.errors) end + def test_sys_sign_verify + key = OpenSSL::PKey::DSA.new(256) + data = 'Sign me!' + digest = OpenSSL::Digest::SHA1.digest(data) + sig = key.syssign(digest) + assert(key.sysverify(digest, sig)) + end + def test_sign_verify check_sign_verify(OpenSSL::Digest::DSS1.new) end |