Endianness issues with GPG
Thu May 15 02:47:00 2003
> Having checked out that the binary files produced
> by GPG-encrypting a file without ASCII armor in a
> little endian platform can be decrypted in a big
> endian one, without any other provisos (i.e. my
> assumption was wrong) I wonder if anyone could provide
> a rigorous justification for this?
That's simple: you have to store the file in a fixed format with a the
same endianness on all machines. The decryption then can take care of the
endianness when decrypting a textfile on a specific machine, since gnupg
knows the endianness on the machine it's running on. Textfiles can then be
converted to the same endianness as the target machine after decryption.
ir. J.C.A. Wevers // Physics and science fiction site:
firstname.lastname@example.org // http://www.xs4all.nl/~johanw/index.html
PGP/GPG public keys at http://www.xs4all.nl/~johanw/pgpkeys.html