Miscalculated Key ID and fingerprints when compiled for ARM

Rich Jones rich at anomos.info
Tue Feb 2 08:22:05 CET 2010


Thank you for your swift response!

I will try with --disable-endian-check tomorrow.

For that command, on the x86 machine (my thinkpad):
4E12 43BD 22C6 6E76 C2BA  9EDD C1F9 1394 E57F 9F83

on the device:
FD0C FBCC EB2E 860F 866C  09F9 0FB8 3DE9 32C7 0400

!
R

On Tue, Feb 2, 2010 at 12:17 AM, David Shaw <dshaw at jabberwocky.com> wrote:
> On Feb 1, 2010, at 11:05 PM, Rich Jones wrote:
>
>> Hello!
>>
>> I have complied a version of GPG for an ARM-based processor (this is
>> actually running a T-Mobile G1). I have found an interesting and
>> unfortunately fatal bug.
>>
>> All imported keys are invalid as there is a miscalculated key ID and
>> fingerprint.
>>
>> For example, on my real machine, --list-keys gives:
>>
>> pub   1024D/A1D39D09 2008-04-23
>> uid                  John M. Schanck <jms07 at hampshire.edu>
>> uid                  John M. Schanck <john at anomos.info>
>> sub   2048g/2B4C51FB 2008-04-23
>>
>> but on the ARM version, the same command on the same imported key gives:
>>
>> pub   1024D/5267F8D8 2008-04-23
>> uid                  John M. Schanck <jms07 at hampshire.edu>
>> uid                  John M. Schanck <john at anomos.info>
>>
>> The binary was compiled with the command: ./configure CC=gnupg-agcc
>> --host=arm-eabi --prefix=/data/data/org.gnupg.android.gnupg/
>> --disable-idea --disable-finger --disable-largefile
>> --with-zlib=$DROID/src/external/zlib
>> --with-bzip2=$DROID/external/bzip2 --with-included-regex
>> --disable-photo-viewers
>
> Hmm.  A few things to try:
>
> What sort of machine is your "real machine"?
>
> Try adding --disable-endian-check to your configure line.
>
> Also, what happens if you do:
>
>  echo test | gpg --print-md sha1
>
> On both your real machine and on the ARM machine?
>
> David
>
>



More information about the Gnupg-devel mailing list