From 79650494418be22c875768880b65a9b7060edbc5 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 21 Oct 2021 15:15:06 +0900 Subject: [PATCH] experiment: Fix for 448 pubkey. Signed-off-by: NIIBE Yutaka --- common/openpgp-misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/openpgp-misc.c b/common/openpgp-misc.c index 4d057e5ed..0c2960c3c 100644 --- a/common/openpgp-misc.c +++ b/common/openpgp-misc.c @@ -87,7 +87,7 @@ openpgp_fixup_pubkey_448 (int algo, gcry_mpi_t *p_pubkey) p[0] = 0x40; memcpy (p+1, p_key, len); - a = gcry_mpi_set_opaque (NULL, p, 0); + a = gcry_mpi_set_opaque (NULL, p, len*8+7); gcry_mpi_set_flag (a, GCRYMPI_FLAG_USER2); *p_pubkey = a; gcry_mpi_release (pubkey_mpi);