Error encrypting string data

Werner Koch
Tue, 22 Jul 2003 16:21:37 +0200

On Tue, 22 Jul 2003 15:59:08 +0200, Ralf Schneider said:

> difference in the first MPI value (named n). In the original key the value of 
mpi-> alloced is 33 and in the recovered key it is 32. All the other value are 
> the same.

> Any idea what's going wrong?

You should not look at internal data structures. 

The space allocated for the MPI might be larger than required without
doing any harm.  Note also that you need to use gcry_mpi_cmp to
compare the values.  Especially, leading zeroes have no relevance.



Werner Koch                                      <>
The GnuPG Experts                      
Free Software Foundation Europe