aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2019-12-02 03:29:56 +0000
committerNIIBE Yutaka <[email protected]>2020-05-04 01:57:08 +0000
commitf27a5810903ad23246c1f7157290aa8526af2c7f (patch)
tree72909a974764516acce5c1ceb59472cf426c2a12
parentsos: Fix fingerprint computation. (diff)
downloadgnupg-f27a5810903ad23246c1f7157290aa8526af2c7f.tar.gz
gnupg-f27a5810903ad23246c1f7157290aa8526af2c7f.zip
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 <[email protected]>
-rw-r--r--g10/keyid.c2
1 files changed, 0 insertions, 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;
}