mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 14:39:24 -05:00
Fix some rogue // comments.
That's what you get for changing things at the last minute...
This commit is contained in:
parent
53ff0ffd55
commit
bb09a3936e
2
ssh.h
2
ssh.h
@ -104,7 +104,7 @@ struct ec_curve;
|
|||||||
struct ec_point {
|
struct ec_point {
|
||||||
const struct ec_curve *curve;
|
const struct ec_curve *curve;
|
||||||
Bignum x, y;
|
Bignum x, y;
|
||||||
Bignum z; // Jacobian denominator
|
Bignum z; /* Jacobian denominator */
|
||||||
unsigned char infinity;
|
unsigned char infinity;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
8
sshecc.c
8
sshecc.c
@ -511,17 +511,17 @@ static int ecp_normalise(struct ec_point *a)
|
|||||||
/* In Jacobian Coordinates the triple (X, Y, Z) represents
|
/* In Jacobian Coordinates the triple (X, Y, Z) represents
|
||||||
the affine point (X / Z^2, Y / Z^3) */
|
the affine point (X / Z^2, Y / Z^3) */
|
||||||
if (!a) {
|
if (!a) {
|
||||||
// No point
|
/* No point */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (a->infinity) {
|
if (a->infinity) {
|
||||||
// Point is at infinity - i.e. normalised
|
/* Point is at infinity - i.e. normalised */
|
||||||
return 1;
|
return 1;
|
||||||
} else if (!a->x || !a->y) {
|
} else if (!a->x || !a->y) {
|
||||||
// No point defined
|
/* No point defined */
|
||||||
return 0;
|
return 0;
|
||||||
} else if (!a->z) {
|
} else if (!a->z) {
|
||||||
// Already normalised
|
/* Already normalised */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user