Lines Matching refs:carry

355     int carry;  in BN_nist_mod_192()  local
436 carry = (int)(acc >> 32); in BN_nist_mod_192()
443 carry = (int)bn_add_words(r_d, r_d, t_d, BN_NIST_192_TOP); in BN_nist_mod_192()
445 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_192_TOP); in BN_nist_mod_192()
447 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_192_TOP); in BN_nist_mod_192()
450 if (carry > 0) in BN_nist_mod_192()
451 carry = in BN_nist_mod_192()
452 (int)bn_sub_words(r_d, r_d, _nist_p_192[carry - 1], in BN_nist_mod_192()
455 carry = 1; in BN_nist_mod_192()
463 res = (bn_sub_words(c_d, r_d, _nist_p_192[0], BN_NIST_192_TOP) && carry) in BN_nist_mod_192()
491 int carry; in BN_nist_mod_224() local
590 carry = (int)(acc >> 32); in BN_nist_mod_224()
592 rp[7] = carry; in BN_nist_mod_224()
600 carry = (int)bn_add_words(r_d, r_d, t_d, BN_NIST_224_TOP); in BN_nist_mod_224()
602 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_224_TOP); in BN_nist_mod_224()
604 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_224_TOP); in BN_nist_mod_224()
606 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_224_TOP); in BN_nist_mod_224()
609 carry = (int)(r_d[BN_NIST_224_TOP - 1] >> 32); in BN_nist_mod_224()
614 if (carry > 0) { in BN_nist_mod_224()
615 carry = in BN_nist_mod_224()
616 (int)bn_sub_words(r_d, r_d, _nist_p_224[carry - 1], in BN_nist_mod_224()
619 carry = (int)(~(r_d[BN_NIST_224_TOP - 1] >> 32)) & 1; in BN_nist_mod_224()
621 } else if (carry < 0) { in BN_nist_mod_224()
629 carry = in BN_nist_mod_224()
630 (int)bn_add_words(r_d, r_d, _nist_p_224[-carry - 1], in BN_nist_mod_224()
632 adjust = carry ? bn_sub_words : bn_add_words; in BN_nist_mod_224()
634 carry = 1; in BN_nist_mod_224()
637 res = ((*adjust) (c_d, r_d, _nist_p_224[0], BN_NIST_224_TOP) && carry) in BN_nist_mod_224()
663 int carry = 0; in BN_nist_mod_256() local
794 carry = (int)(acc >> 32); in BN_nist_mod_256()
808 carry = (int)bn_add_words(t_d, t_d, c_d, BN_NIST_256_TOP); in BN_nist_mod_256()
819 carry <<= 1; in BN_nist_mod_256()
820 carry |= c; in BN_nist_mod_256()
822 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_256_TOP); in BN_nist_mod_256()
827 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_256_TOP); in BN_nist_mod_256()
832 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_256_TOP); in BN_nist_mod_256()
837 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_256_TOP); in BN_nist_mod_256()
842 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_256_TOP); in BN_nist_mod_256()
847 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_256_TOP); in BN_nist_mod_256()
852 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_256_TOP); in BN_nist_mod_256()
858 if (carry > 0) in BN_nist_mod_256()
859 carry = in BN_nist_mod_256()
860 (int)bn_sub_words(r_d, r_d, _nist_p_256[carry - 1], in BN_nist_mod_256()
862 else if (carry < 0) { in BN_nist_mod_256()
863 carry = in BN_nist_mod_256()
864 (int)bn_add_words(r_d, r_d, _nist_p_256[-carry - 1], in BN_nist_mod_256()
866 adjust = carry ? bn_sub_words : bn_add_words; in BN_nist_mod_256()
868 carry = 1; in BN_nist_mod_256()
870 res = ((*adjust) (c_d, r_d, _nist_p_256[0], BN_NIST_256_TOP) && carry) in BN_nist_mod_256()
900 int carry = 0; in BN_nist_mod_384() local
1058 carry = (int)(acc >> 32); in BN_nist_mod_384()
1080 carry = in BN_nist_mod_384()
1086 carry += (int)bn_add_words(r_d, r_d, buf.bn, BN_NIST_384_TOP); in BN_nist_mod_384()
1092 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_384_TOP); in BN_nist_mod_384()
1098 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_384_TOP); in BN_nist_mod_384()
1103 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_384_TOP); in BN_nist_mod_384()
1108 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_384_TOP); in BN_nist_mod_384()
1114 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_384_TOP); in BN_nist_mod_384()
1119 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_384_TOP); in BN_nist_mod_384()
1124 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_384_TOP); in BN_nist_mod_384()
1130 if (carry > 0) in BN_nist_mod_384()
1131 carry = in BN_nist_mod_384()
1132 (int)bn_sub_words(r_d, r_d, _nist_p_384[carry - 1], in BN_nist_mod_384()
1134 else if (carry < 0) { in BN_nist_mod_384()
1135 carry = in BN_nist_mod_384()
1136 (int)bn_add_words(r_d, r_d, _nist_p_384[-carry - 1], in BN_nist_mod_384()
1138 adjust = carry ? bn_sub_words : bn_add_words; in BN_nist_mod_384()
1140 carry = 1; in BN_nist_mod_384()
1142 res = ((*adjust) (c_d, r_d, _nist_p_384[0], BN_NIST_384_TOP) && carry) in BN_nist_mod_384()