syssign

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)
doc_ruby_on_rails
2015-04-25 16:16:41
Comments
Leave a Comment

Please login to continue.