An octet sequence as an MPI

Niibe Yutaka gniibe at
Mon Oct 14 06:47:58 CEST 2019

Hello, again,

NIIBE Yutaka wrote:
> Current libgcrypt + GnuPG implementation have an issue around handling
> of an octet sequence as big-endian number in an MPI.

More specifically, for S-expression, here is an example program to show
the problem.

The point is that the reader side should know how to interpret binary in
S-expression.  It is not defined by the data itself.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-sexp-mpi-octet.c
Type: text/x-csrc
Size: 2391 bytes
Desc: not available
URL: <>

More information about the Gcrypt-devel mailing list