diff options
Diffstat (limited to '')
-rw-r--r-- | agent/divert-scd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/divert-scd.c b/agent/divert-scd.c index e0b5164b5..cd80f09f1 100644 --- a/agent/divert-scd.c +++ b/agent/divert-scd.c @@ -518,7 +518,7 @@ agent_card_ecc_kem (ctrl_t ctrl, const unsigned char *ecc_ct, if (len == ecc_point_len) memcpy (ecc_ecdh, ecdh, len); else if (len && (len - 1) * 2 == ecc_point_len - 1 - && (ecdh[0] & ~1) == 0x02) + && (ecdh[0] == 0x41 || (ecdh[0] & ~1) == 0x02)) { /* It's x-coordinate-only (compressed) point representation. */ memcpy (ecc_ecdh, ecdh, len); |