1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-11 21:48:50 +01:00

experiment: Fix for 448 pubkey.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2021-10-21 15:15:06 +09:00
parent 98010a02c4
commit 7965049441

View File

@ -87,7 +87,7 @@ openpgp_fixup_pubkey_448 (int algo, gcry_mpi_t *p_pubkey)
p[0] = 0x40; p[0] = 0x40;
memcpy (p+1, p_key, len); 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); gcry_mpi_set_flag (a, GCRYMPI_FLAG_USER2);
*p_pubkey = a; *p_pubkey = a;
gcry_mpi_release (pubkey_mpi); gcry_mpi_release (pubkey_mpi);