From f27a5810903ad23246c1f7157290aa8526af2c7f Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Mon, 2 Dec 2019 12:29:56 +0900 Subject: 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 --- g10/keyid.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/g10/keyid.c b/g10/keyid.c index bfa81a591..d3fc29a98 100644 --- a/g10/keyid.c +++ b/g10/keyid.c @@ -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; } -- cgit v1.2.3