1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-04-12 22:11:29 +02:00

ecc-sos: Use unsigned integer format for SSH.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2020-05-26 14:19:44 +09:00
parent 324dbe3eb5
commit df3628f958

View File

@ -1975,9 +1975,7 @@ ssh_key_to_blob (gcry_sexp_t sexp, int with_secret,
{
gcry_mpi_t mpi;
/* Note that we need to use STD format; i.e. prepend a 0x00
to indicate a positive number if the high bit is set. */
mpi = gcry_sexp_nth_mpi (value_pair, 1, GCRYMPI_FMT_STD);
mpi = gcry_sexp_nth_mpi (value_pair, 1, GCRYMPI_FMT_USG);
if (!mpi)
{
err = gpg_error (GPG_ERR_INV_SEXP);