Error encrypting string data
Werner Koch
wk@gnupg.org
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.
Salam-Shalom,
Werner
--
Werner Koch <wk@gnupg.org>
The GnuPG Experts http://g10code.com
Free Software Foundation Europe http://fsfeurope.org