[OpenID] Random failures when validating signatures

Richard Davies richard at richarddavies.us
Thu Nov 13 18:32:03 UTC 2008


On Nov 13, 10:24 am, Breno de Medeiros <br... at google.com> wrote:
> That would make all values negative, while you want them all positive,
> I think. You need to have a leading 0.

Yes, I understand that when converting an integer to a binary encoded
string with my btwoc() function, I need to add the 0 byte to any
negative numbers to make them positive.

What I'm talking about here is how I should treat the server_public
value, which has already gone through the btwoc() conversion on the
provider's end. I need to "unbtwoc" the value to obtain the original
number, right? So, to reverse the process, it seems to me that I would
need to remove a zero byte from the beginning of the value if it
exists.



More information about the general mailing list