• Home
  • Raw
  • Download

Lines Matching refs:pGFE

71       gsModEngine* pGFE = GFP_PMA(pGF);  in gfec_IsPointOnCurve()  local
73 mod_mul mulF = GFP_METHOD(pGFE)->mul; in gfec_IsPointOnCurve()
74 mod_sqr sqrF = GFP_METHOD(pGFE)->sqr; in gfec_IsPointOnCurve()
75 mod_sub subF = GFP_METHOD(pGFE)->sub; in gfec_IsPointOnCurve()
81 BNU_CHUNK_T* pR = cpGFpGetPool(1, pGFE); in gfec_IsPointOnCurve()
82 BNU_CHUNK_T* pT = cpGFpGetPool(1, pGFE); in gfec_IsPointOnCurve()
84 sqrF(pR, pY, pGFE); /* R = Y^2 */ in gfec_IsPointOnCurve()
85 sqrF(pT, pX, pGFE); /* T = X^3 */ in gfec_IsPointOnCurve()
86 mulF(pT, pX, pT, pGFE); in gfec_IsPointOnCurve()
87 subF(pR, pR, pT, pGFE); /* R -= T */ in gfec_IsPointOnCurve()
90 mulF(pT, pX, ECP_A(pEC), pGFE); /* T = A*X */ in gfec_IsPointOnCurve()
91 subF(pR, pR, pT, pGFE); /* R -= T */ in gfec_IsPointOnCurve()
92 subF(pR, pR, ECP_B(pEC), pGFE); /* R -= B */ in gfec_IsPointOnCurve()
95 BNU_CHUNK_T* pZ4 = cpGFpGetPool(1, pGFE); in gfec_IsPointOnCurve()
96 BNU_CHUNK_T* pZ6 = cpGFpGetPool(1, pGFE); in gfec_IsPointOnCurve()
98 sqrF(pZ6, pZ, pGFE); /* Z^2 */ in gfec_IsPointOnCurve()
99 sqrF(pZ4, pZ6, pGFE); /* Z^4 */ in gfec_IsPointOnCurve()
100 mulF(pZ6, pZ6, pZ4, pGFE); /* Z^6 */ in gfec_IsPointOnCurve()
102 mulF(pZ4, pZ4, pX, pGFE); /* X*(Z^4) */ in gfec_IsPointOnCurve()
103 mulF(pZ4, pZ4, ECP_A(pEC), pGFE); /* A*X*(Z^4) */ in gfec_IsPointOnCurve()
104 mulF(pZ6, pZ6, ECP_B(pEC), pGFE); /* B*(Z^4) */ in gfec_IsPointOnCurve()
106 subF(pR, pR, pZ4, pGFE); /* R -= A*X*(Z^4) */ in gfec_IsPointOnCurve()
107 subF(pR, pR, pZ6, pGFE); /* R -= B*(Z^6) */ in gfec_IsPointOnCurve()
109 cpGFpReleasePool(2, pGFE); in gfec_IsPointOnCurve()
112 isOnCurve = GFP_IS_ZERO(pR, GFP_FELEN(pGFE)); in gfec_IsPointOnCurve()
113 cpGFpReleasePool(2, pGFE); in gfec_IsPointOnCurve()