dsa.syssign(string) â aString
Instance Public methods
Computes and returns the DSA signature of
string
, where string
is expected to be an
already-computed message digest of the original input data. The signature
is issued using the private key of this DSA
instance.
Parameters
-
string
is a message digest of the original input data to be signed
Example
1 2 3 4 | dsa = OpenSSL::PKey:: DSA . new ( 2048 ) doc = "Sign me" digest = OpenSSL::Digest:: SHA1 .digest(doc) sig = dsa.syssign(digest) |
Please login to continue.