Re: Using Crypt::DSA




"Mike Friedman" <mikef@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message

[snip]

>
> I want to be able to create a public key file and a signature in formats
> that can be distributed to a user community whose applications may be
> using other DSA implementations (e.g., Java crypto lib, or other scripting
> languages besides perl). So, it's important that the public key file be
> in a reasonably standard format.

Which, afaik, would be a pem file. Crypt::DSA can parse them (as long as you
have Convert::PEM) and so, presumably, can the other DSA implementations. To
write a *public* key pem file with Crypt::DSA you just do (as in 04-pem.t):

$key->priv_key(undef);
$key->write( Type => 'PEM', Filename => $keyfile);


> Also, I'd be passing the signature as
> a base64-encoded string via a web form field. Once the application
> base64-decodes it, the signature should be in a format easily fed to its
> DSA verify routine.
>

Are you saying the signature part is not a problem ? I find some ambiguity
with "the signature should be in a format easily fed to its DSA verify
routine" - not sure whether that means the signature is already in a
suitable format, or whether it means that it needs to be in a suitable
format (but isn't).

Cheers,
Rob


.



Relevant Pages

  • Re: Using Crypt::DSA
    ... >> important that the public key file be in a reasonably standard format. ... > DSA implementations. ... I'd be passing the signature as a base64-encoded string ...
    (comp.lang.perl.misc)
  • Re: Email signature does not appear as formatted
    ... Word as your editor you can format your signature in Word and save it in the ... e-mail signature in Word, Toosl, Options, E-mail Options. ...
    (microsoft.public.word.docmanagement)
  • Re: Email Format while Replying
    ... Outlook always replys in the same message format. ... Plain Text to HTML you'll need to re-insert your signature. ...
    (microsoft.public.outlook.general)
  • Re: formating business phone numbers to all employees - Outlook 20
    ... Why do i need to have HTML and RTF formating? ... There is 1 signture for each format. ... So for one signature you have .htm, ... automatically whenever the employee send emails as an outbound email? ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: Using Crypt::DSA
    ... >> So, once again, assuming I've signed a message, creating a signature ... Here's a script that writes to file, ... using other DSA implementations (e.g., Java crypto lib, or other scripting ... in a reasonably standard format. ...
    (comp.lang.perl.misc)