Ah this does work. I should have check the newsgroups a bit more.
I wish the perldoc for Crypt::DSA had mentioned that there is a write function.
$signature = $dsa->sign(%arg)
Signs a message (or the digest of a message) using the private portion of the DSA key and returns the signature.
The signature is a hash reference with two keys: s and r.
- %arg can include:
A digest to be signed. The digest should be 20 bytes in length or less.
You must provide either this argument or Message (see below).
The Crypt::DSA::Key object with which the signature will be generated. Should contain a private key attribute (priv_key).
This argument is required.
write (what zentara used), is a method of $key, a Crypt::DSA::Key
object, so it makes sense that its documented in Crypt::DSA::Key
|MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"|
|I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).|
|** The third rule of perl club is a statement of fact: pod is sexy.|