Lines Matching refs:pGFE
65 gsModEngine* pGFE = GFP_PMA(pGF); in gfec_affine_point_add() local
66 int elemLen = GFP_FELEN(pGFE); in gfec_affine_point_add()
68 mod_sub sub = GFP_METHOD(pGFE)->sub; /* gf sub */ in gfec_affine_point_add()
69 mod_mul2 mul2= GFP_METHOD(pGFE)->mul2; /* gf mul2 */ in gfec_affine_point_add()
70 mod_mul mul = GFP_METHOD(pGFE)->mul; /* gf mul */ in gfec_affine_point_add()
71 mod_sqr sqr = GFP_METHOD(pGFE)->sqr; /* gf sqr */ in gfec_affine_point_add()
73 BNU_CHUNK_T* mont1 = GFP_MNT_R(pGFE); in gfec_affine_point_add()
97 sqr(R, pz, pGFE); // R = Z1^2 in gfec_affine_point_add()
98 mul(S2, ay, pz, pGFE); // S2 = Y2*Z1 in gfec_affine_point_add()
99 mul(U2, ax, R, pGFE); // U2 = X2*Z1^2 in gfec_affine_point_add()
100 mul(S2, S2, R, pGFE); // S2 = Y2*Z1^3 in gfec_affine_point_add()
102 sub(H, U2, px, pGFE); // H = U2-X1 in gfec_affine_point_add()
103 sub(R, S2, py, pGFE); // R = S2-Y1 in gfec_affine_point_add()
105 mul(pRz, H, pz, pGFE); // Z3 = H*Z1 in gfec_affine_point_add()
107 sqr(U2, H, pGFE); // U2 = H^2 in gfec_affine_point_add()
108 sqr(S2, R, pGFE); // S2 = R^2 in gfec_affine_point_add()
109 mul(H, H, U2, pGFE); // H = H^3 in gfec_affine_point_add()
111 mul(U2, U2, px, pGFE); // U2 = X1*H^2 in gfec_affine_point_add()
113 mul(pRy, H, py, pGFE); // T = Y1*H^3 in gfec_affine_point_add()
115 mul2(pRx, U2, pGFE); // X3 = 2*X1*H^2 in gfec_affine_point_add()
116 sub(pRx, S2, pRx, pGFE); // X3 = R^2 - 2*X1*H^2 in gfec_affine_point_add()
117 sub(pRx, pRx, H, pGFE); // X3 = R^2 - 2*X1*H^2 -H^3 in gfec_affine_point_add()
119 sub(U2, U2, pRx, pGFE); // U2 = X1*H^2 - X3 in gfec_affine_point_add()
120 mul(U2, U2, R, pGFE); // U2 = R*(X1*H^2 - X3) in gfec_affine_point_add()
121 sub(pRy, U2, pRy, pGFE); // Y3 = -Y1*H^3 + R*(X1*H^2 - X3) in gfec_affine_point_add()