Mailing List Archive

decrypting errors with ARM - i386
Hello,

I have a question regarding libgcrypt.

We develop a software running on i386 linux and on the PDA zaurus
platform (linux on strongARM processor). We are using libgcrypt 1.2 and
link the files statically into our code.
Depending on the target (i386, ARM) we are using the GNU compiler or the
GNU crosscompiler.

Encryption/decryption on the same platform works well. But If I move an
encrypted file to the other platform, the decryption process fails with
crashes.
Example: encrypt a file with Linux, and then decrypt the same file on
the ARM or vice versa.

The configuration of libgcrypt we are using is based on mpi/generic.
I checked also if configure generates different config.h files for i386
and ARM. But the resulting config.h is basically the same. Only that
configure generates for i386 links to mpi/i386 (compared with
mpi/generic for the ARM)

- Did you hear about this behavior?
- Do you have ideas how to fix that?
- Are there any implications if I use mpi/generic for i386?


Thanks,
Ulf


















__________________________________
Ulf Schenk
Technical Support, Versant Corporation
Email: uschenk@versant.com
Phone: 510-789-1642
Fax: 510-789-1519
Re: decrypting errors with ARM - i386 [ In reply to ]
On Fri, 5 Nov 2004 10:40:13 -0800, Ulf Schenk said:

> Encryption/decryption on the same platform works well. But If I move an
> encrypted file to the other platform, the decryption process fails with
> crashes.

To track down the probelm we first need to know how you encrypt a
file. Libgcrypt is just a low-level library and does not implement
any protocol. A stack bachtrace would be helpful too ("bt full" in
gdb on the core file or the process).

> - Are there any implications if I use mpi/generic for i386?

No, it works on any platform as it is plain C code and very likely has
been used on little and big endian machines.


Shalom-Salam,

Werner
RE: decrypting errors with ARM - i386 [ In reply to ]
I found the problem finally,

And it was of course an application error, and unrelated to libgcrypt.

Thanks for your help.
Ulf




> -----Original Message-----
> From: Werner Koch [mailto:wk@gnupg.org]
> Sent: Friday, November 05, 2004 1:46 PM
> To: Ulf Schenk
> Cc: gcrypt-devel@gnupg.org
> Subject: Re: decrypting errors with ARM - i386
>
> On Fri, 5 Nov 2004 10:40:13 -0800, Ulf Schenk said:
>
> > Encryption/decryption on the same platform works well. But If I move
an
> > encrypted file to the other platform, the decryption process fails
with
> > crashes.
>
> To track down the probelm we first need to know how you encrypt a
> file. Libgcrypt is just a low-level library and does not implement
> any protocol. A stack bachtrace would be helpful too ("bt full" in
> gdb on the core file or the process).
>
> > - Are there any implications if I use mpi/generic for i386?
>
> No, it works on any platform as it is plain C code and very likely has
> been used on little and big endian machines.
>
>
> Shalom-Salam,
>
> Werner