Re: I can has SHA-1 hashes for RFC 2409/3526 MODP groups?

Peter Gutmann <[email protected]>
Newsgroups gmane.ietf.tls,gmane.ietf.secsh
Message-ID <9A043F3CF02CD34C8E74AC1594475C7372388540@uxcn10-6.UoA.auckland.ac.nz>
Henrick Hellström <[email protected]> writes:

>The problem with calculating the hash of the internal representation, is that
>the hash will depend on the internal representation, which is prone to be
>implementation specific. Is it little endian or big endian? Is there a zero
>valued word in the most significant position or not?

I don't need the hash of the internal representation (my code does its own
integrity checking, so once it's in the internal form it's protected, at least
from random corruption), just of the byte-string representation of p as
stored/as present in the RFC.  So for example for the 2048-bit MODP group it'd
be the SHA-1 hash of, in C notation, { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xC9, 0x0F, 0xDA, 0xA2, ... 0xFF }.

Peter.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.