dh question

Brad Fitzpatrick brad at danga.com
Tue Jun 7 15:42:07 PDT 2005

I'm adding DH/HMAC support to the Perl modules, and I have a question:

# openid.enc_secret = H(gx ^ y mod p) XOR secret(handle)

When I run H() on gx^y mod p, what are the actual bytes I'm running H()

   -- base-256, MSB?
       -- adding extra 0 bits to beginning to pad to byte boundary
   -- decimal string?
   -- hex string?
   -- base64 string?  (of what bytes, again)

I assume base-256, MSB, but let me know.

- Brad

More information about the yadis mailing list