Ah this does work. I should have check the newsgroups a bit more.The Crypt::DSA doc saysI 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.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.The signature is a hash reference with two keys: s and r.
- %arg can include:
- Digest
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).
- Key
The Crypt::DSA::Key object with which the signature will be generated. Should contain a private key attribute (priv_key). This argument is required.
In reply to Re^5: How to Make Crypt::DSA use a your key to sign something
by PodMaster
in thread How to Make Crypt::DSA use a your key to sign something
by xorl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |