Flowdock
method

syssign

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: DSA
syssign(p1) public

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)
Show source
Register or log in to add new notes.