X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=sshecc.c;h=541dd63cdb885b9b645be8aa41c9d4ac6dcfbcc8;hb=af1460d6e5044a3344aaacd15c91cfdcb58578e7;hp=bc842d0b467fa5f667d3a2856f5a6096f25e9ff4;hpb=63b47ed9d504b37ac2e903715ae7bf40036473a1;p=PuTTY.git diff --git a/sshecc.c b/sshecc.c index bc842d0b..541dd63c 100644 --- a/sshecc.c +++ b/sshecc.c @@ -1648,6 +1648,7 @@ static int decodepoint_ed(const char *p, int length, struct ec_point *point) /* Read x bit and then reset it */ negative = bignum_bit(point->y, point->curve->fieldBits - 1); bignum_set_bit(point->y, point->curve->fieldBits - 1, 0); + bn_restore_invariant(point->y); /* Get the x from the y */ point->x = ecp_edx(point->curve, point->y);