PHP hackers wanted -- here's a seed

Phillip Pearson pp at
Wed May 25 05:15:10 PDT 2005

OK, I've got some PHP code up and running now that mimics dumpasn1 and
manages to pull all four integers out of my own public key.  Looking
good so far... now to get them into whatever format those TypeKey
routines need.

Anyone feel like writing some DSS key generation and signing routines
in PHP?  :-)


On Wed, May 25, 2005 at 01:43:54AM -0700, Brad Fitzpatrick wrote:
> Which puts gets $r and $s from the DER-packed ASN1 of
> SEQUENCE(INTEGER,INTEGER).  You can port that to PHP, then you just need
> to decode the PEM file:
> Remove the BEGIN/END lines, put it all together, un-base64 it, and you
> just got another DER-packed ASN.1, which I'm told is of schema:
>       (OBJECT dsaEncryption)
>       (SEQUENCE
>         (INTEGER p)
>         (INTEGER q)
>         (INTEGER g)))
>       (ASN1_DER
>         (INTEGER y)))))

More information about the yadis mailing list