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
dsa = OpenSSL::PKey::DSA.new(2048) doc = "Sign me" digest = OpenSSL::Digest::SHA1.digest(doc) sig = dsa.syssign(digest)
Please login to continue.