Lines Matching refs:b
99 signed int big_integer_compare(unsigned int *a, unsigned int aWordLen, unsigned int *b, unsigned in… in big_integer_compare() argument
104 bWordLen = valid_words_get(b, bWordLen); in big_integer_compare()
113 if(a[i] > b[i]) in big_integer_compare()
115 if(a[i] < b[i]) in big_integer_compare()
130 void sub_u32(unsigned int *a, unsigned int *b, unsigned int *c, unsigned int wordLen) in sub_u32() argument
137 temp = a[i]-b[i]; in sub_u32()
498 …nsigned char pke_mod_mul(const unsigned int *modulus, const unsigned int *a, const unsigned int *b, in pke_mod_mul() argument
507 pke_load_operand((unsigned int *)(reg_pke_b_ram(0)), (unsigned int *)b, wordLen); //B0 b in pke_mod_mul()
560 unsigned char pke_mod_add(const unsigned int *modulus, const unsigned int *a, const unsigned int *b, in pke_mod_add() argument
569 pke_load_operand((unsigned int *)(reg_pke_b_ram(0)), (unsigned int *)b, wordLen); //B0 b in pke_mod_add()
591 unsigned char pke_mod_sub(const unsigned int *modulus, const unsigned int *a, const unsigned int *b, in pke_mod_sub() argument
600 …pke_load_operand((unsigned int *)(reg_pke_b_ram(0)), (unsigned int *)b, wordLen); //B0 b in pke_mod_sub()
764 unsigned char pke_mod(unsigned int *a, unsigned int aWordLen, unsigned int *b, unsigned int *b_h, u… in pke_mod() argument
771 ret = big_integer_compare(a, aWordLen, b, bWordLen); in pke_mod()
787 bitLen = valid_bits_get(b, bWordLen) & 0x1F; in pke_mod()
803 if(big_integer_compare(p, bWordLen, b, bWordLen) >= 0) in pke_mod()
805 sub_u32(p, b, a_high, bWordLen); in pke_mod()
815 if(big_integer_compare(a+bWordLen, tmpLen, b, bWordLen) > 0) in pke_mod()
817 sub_u32(a+bWordLen, b, a_high, bWordLen); in pke_mod()
828 ret = pke_calc_pre_mont(b, bWordLen); in pke_mod()
845 sub_u32(p, b, (unsigned int *)reg_pke_b_ram(1), bWordLen); in pke_mod()
850 pke_calc_pre_mont(b, bWordLen); in pke_mod()
851 …ret = pke_mod_mul(b, (unsigned int *)reg_pke_b_ram(1), a_high, (unsigned int *)reg_pke_b_ram(1), b… in pke_mod()
863 if(big_integer_compare(p, bWordLen, b, bWordLen) >= 0) in pke_mod()
865 sub_u32(p, b, a_low, bWordLen); in pke_mod()
874 if(big_integer_compare(a, bWordLen, b, bWordLen) >= 0) in pke_mod()
877 sub_u32(a, b, a_low, bWordLen); in pke_mod()
885 return pke_mod_add(b, a_low, (unsigned int *)reg_pke_b_ram(1), c, bWordLen); in pke_mod()