Lines Matching defs:pt
116 point_proj pt;
119 pt = (point_proj) malloc(sizeof(point_struct_proj));
120 pt->x = newgiant(shorts);
121 pt->y = newgiant(shorts);
122 pt->z = newgiant(shorts);
123 return(pt);
127 free_point_proj(point_proj pt)
129 free(pt->x); free(pt->y); free(pt->z);
130 free(pt);
177 ell_double_proj(point_proj pt, giant a, giant p)
178 /* pt := 2 pt on the curve. */
180 giant x = pt->x, y = pt->y, z = pt->z;
203 x = pt[[1]]; y = pt[[2]]; z = pt[[3]];
323 ell_neg_proj(point_proj pt, giant p)
324 /* pt := -pt on the curve. */
326 negg(pt->y); modg(p, pt->y);
381 pt2 = pt;
389 pt2 = elladd[pt2, pt],
391 pt2 = ellsub[pt2, pt]]
400 normalize_proj(point_proj pt, giant p)
405 { giant x = pt->x, y = pt->y, z = pt->z;
420 If[pt[[3]] == 0, Return[pt]];
421 z = ellinv[pt[[3]]];
424 Return[{Mod[pt[[1]] z2, p], Mod[pt[[2]] z3, p], 1}];
430 find_point_proj(point_proj pt, giant seed, giant a, giant b, giant p)
433 { giant x = pt->x, y = pt->y, z = pt->z;