mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-10 13:04:23 +01: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:
parent
638328a33d
commit
f27a581090
@ -194,8 +194,6 @@ hash_public_key (gcry_md_hd_t md, PKT_public_key *pk)
|
|||||||
pp[i] = NULL;
|
pp[i] = NULL;
|
||||||
if (is_sos)
|
if (is_sos)
|
||||||
{
|
{
|
||||||
const unsigned char *p0 = p;
|
|
||||||
CALC_NBITS (nbits, p0);
|
|
||||||
pp[i][0] = (nbits >> 8);
|
pp[i][0] = (nbits >> 8);
|
||||||
pp[i][1] = nbits;
|
pp[i][1] = nbits;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user