• Home
  • Raw
  • Download

Lines Matching refs:VeryLargeInt

50 uint32_t VliAdd(VeryLargeInt* result, VeryLargeInt const* left,  in VliAdd()
51 VeryLargeInt const* right) { in VliAdd()
62 void VliMul(VeryLargeIntProduct* result, VeryLargeInt const* left, in VliMul()
63 VeryLargeInt const* right) { in VliMul()
83 void VliRShift(VeryLargeInt* result, VeryLargeInt const* in, uint32_t shift) { in VliRShift()
91 uint32_t VliSub(VeryLargeInt* result, VeryLargeInt const* left, in VliSub()
92 VeryLargeInt const* right) { in VliSub()
104 void VliSet(VeryLargeInt* result, VeryLargeInt const* in) { in VliSet()
111 void VliClear(VeryLargeInt* result) { in VliClear()
118 int VliIsZero(VeryLargeInt const* in) { in VliIsZero()
126 void VliCondSet(VeryLargeInt* result, VeryLargeInt const* true_val, in VliCondSet()
127 VeryLargeInt const* false_val, int truth_val) { in VliCondSet()
134 uint32_t VliTestBit(VeryLargeInt const* in, uint32_t bit) { in VliTestBit()
139 int VliRand(VeryLargeInt* result, BitSupplier rnd_func, void* rnd_param) { in VliRand()
141 if (rnd_func(t, sizeof(VeryLargeInt) * 8, rnd_param)) { in VliRand()
148 int VliCmp(VeryLargeInt const* left, VeryLargeInt const* right) { in VliCmp()
158 void VliModAdd(VeryLargeInt* result, VeryLargeInt const* left, in VliModAdd()
159 VeryLargeInt const* right, VeryLargeInt const* mod) { in VliModAdd()
160 VeryLargeInt tmp; in VliModAdd()
166 void VliModSub(VeryLargeInt* result, VeryLargeInt const* left, in VliModSub()
167 VeryLargeInt const* right, VeryLargeInt const* mod) { in VliModSub()
168 VeryLargeInt tmp; in VliModSub()
174 void VliModMul(VeryLargeInt* result, VeryLargeInt const* left, in VliModMul()
175 VeryLargeInt const* right, VeryLargeInt const* mod) { in VliModMul()
182 VeryLargeInt const* p_left) { in vliSquare()
205 void VliModExp(VeryLargeInt* result, VeryLargeInt const* base, in VliModExp()
206 VeryLargeInt const* exp, VeryLargeInt const* mod) { in VliModExp()
207 VeryLargeInt acc, tmp; in VliModExp()
225 void VliModInv(VeryLargeInt* result, VeryLargeInt const* input, in VliModInv()
226 VeryLargeInt const* mod) { in VliModInv()
227 VeryLargeInt power; in VliModInv()
233 void VliModSquare(VeryLargeInt* result, VeryLargeInt const* input, in VliModSquare()
234 VeryLargeInt const* mod) { in VliModSquare()
253 static void vliScalarMult(VeryLargeInt* p_result, VeryLargeInt* p_left, in vliScalarMult()
284 void VliModBarrett(VeryLargeInt* result, VeryLargeIntProduct const* input, in VliModBarrett()
285 VeryLargeInt const* mod) { in VliModBarrett()
288 VeryLargeInt negprime, linear; in VliModBarrett()
290 VliSet((VeryLargeInt*)&tmpprod.word[0], (VeryLargeInt const*)&input->word[0]); in VliModBarrett()
291 VliSet((VeryLargeInt*)&tmpprod.word[NUM_ECC_DIGITS], in VliModBarrett()
292 (VeryLargeInt const*)&input->word[NUM_ECC_DIGITS]); in VliModBarrett()
300 VliAdd((VeryLargeInt*)&tmpprod.word[NUM_ECC_DIGITS - 1], in VliModBarrett()
301 (VeryLargeInt const*)&tmpprod.word[7], &linear); in VliModBarrett()
310 carry = VliAdd((VeryLargeInt*)&tmpprod.word[0], in VliModBarrett()
311 (VeryLargeInt const*)&tmpprod.word[0], in VliModBarrett()
312 (VeryLargeInt const*)&linear); in VliModBarrett()
313 carry |= (-1 < VliCmp((VeryLargeInt const*)&tmpprod.word[0], mod)); in VliModBarrett()
315 VliAdd(result, (VeryLargeInt const*)&tmpprod.word[0], &linear); in VliModBarrett()