1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-17 00:39:50 +02:00

sos: don't change NBITS.

For SOS, an ECC point with prefix 0x40 can be represented in two ways.
One for 0x40 interpreted as 7-bit, another as 8-bit (MSB is zero).

This matters for fingerprint computation, so, the representation
should be preserved, or we should use another flag to hold the
difference in the representation...

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2019-12-02 12:29:56 +09:00
parent 638328a33d
commit f27a581090

View File

@ -194,8 +194,6 @@ hash_public_key (gcry_md_hd_t md, PKT_public_key *pk)
pp[i] = NULL;
if (is_sos)
{
const unsigned char *p0 = p;
CALC_NBITS (nbits, p0);
pp[i][0] = (nbits >> 8);
pp[i][1] = nbits;
}