Re: OpenPGP format example program

New Message Reply About this list Date view Thread view Subject view Author view

Anonymous (nobody@REPLAY.COM)
Mon, 16 Mar 1998 16:55:07 +0100 (MET)


Johnny Eriksson <bygg@sunet.se> writes:
> I do have a comment on a couple of your statements:
>
> The code for cases 1 and 2 above depends on your compiler having the same
> evaluation order as the byte order in the message. Reality is harsh, and
> the eval order is unspecified in the ANSI C standard. I would suggest:
>
> case 2:
> length = getbyte(pgpfile) << 24;
> length += getbyte(pgpfile) << 16;
> length += getbyte(pgpfile) << 8;
> length += getbyte(pgpfile);
> break;

Thanks. I'll fix it in the next version, which will include (at least)
some cleanup, key creation times, recognizing public subkeys, and testing
on more environments including big-endian. Not that anybody has any
reason to operate outside Linux and gcc, of course, but may as well be
open-minded.

        Salvo Salasio


New Message Reply About this list Date view Thread view Subject view Author view

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

The following archive was created by hippie-mail 7.98617-22 on Fri Aug 21 1998 - 17:16:00 ADT