Lines Matching refs:r_d

356     register BN_ULONG *r_d, *a_d = a->d;  in BN_nist_mod_192()  local
385 r_d = r->d; in BN_nist_mod_192()
386 nist_cp_bn(r_d, a_d, BN_NIST_192_TOP); in BN_nist_mod_192()
388 r_d = a_d; in BN_nist_mod_192()
396 unsigned int *rp = (unsigned int *)r_d; 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()
452 (int)bn_sub_words(r_d, r_d, _nist_p_192[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()
464 ? r_d in BN_nist_mod_192()
466 nist_cp_bn(r_d, res, BN_NIST_192_TOP); in BN_nist_mod_192()
492 BN_ULONG *r_d, *a_d = a->d; in BN_nist_mod_224() local
522 r_d = r->d; in BN_nist_mod_224()
523 nist_cp_bn(r_d, a_d, BN_NIST_224_TOP); in BN_nist_mod_224()
525 r_d = a_d; in BN_nist_mod_224()
534 r_d[BN_NIST_224_TOP - 1] &= BN_MASK2l; in BN_nist_mod_224()
543 unsigned int *rp = (unsigned int *)r_d; 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()
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()
630 (int)bn_add_words(r_d, r_d, _nist_p_224[-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()
638 ? r_d in BN_nist_mod_224()
640 nist_cp_bn(r_d, res, BN_NIST_224_TOP); in BN_nist_mod_224()
664 register BN_ULONG *a_d = a->d, *r_d; in BN_nist_mod_256() local
694 r_d = r->d; in BN_nist_mod_256()
695 nist_cp_bn(r_d, a_d, BN_NIST_256_TOP); in BN_nist_mod_256()
697 r_d = a_d; in BN_nist_mod_256()
705 unsigned int *rp = (unsigned int *)r_d; 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()
860 (int)bn_sub_words(r_d, r_d, _nist_p_256[carry - 1], in BN_nist_mod_256()
864 (int)bn_add_words(r_d, r_d, _nist_p_256[-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()
871 ? r_d in BN_nist_mod_256()
873 nist_cp_bn(r_d, res, BN_NIST_256_TOP); in BN_nist_mod_256()
901 register BN_ULONG *r_d, *a_d = a->d; in BN_nist_mod_384() local
931 r_d = r->d; in BN_nist_mod_384()
932 nist_cp_bn(r_d, a_d, BN_NIST_384_TOP); in BN_nist_mod_384()
934 r_d = a_d; in BN_nist_mod_384()
942 unsigned int *rp = (unsigned int *)r_d; in BN_nist_mod_384()
1081 (int)bn_add_words(r_d + (128 / BN_BITS2), r_d + (128 / BN_BITS2), 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()
1132 (int)bn_sub_words(r_d, r_d, _nist_p_384[carry - 1], in BN_nist_mod_384()
1136 (int)bn_add_words(r_d, r_d, _nist_p_384[-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()
1143 ? r_d in BN_nist_mod_384()
1145 nist_cp_bn(r_d, res, BN_NIST_384_TOP); in BN_nist_mod_384()
1160 BN_ULONG *r_d, *a_d = a->d, t_d[BN_NIST_521_TOP], val, tmp, *res; in BN_nist_mod_521() local
1183 r_d = r->d; in BN_nist_mod_521()
1184 nist_cp_bn(r_d, a_d, BN_NIST_521_TOP); in BN_nist_mod_521()
1186 r_d = a_d; in BN_nist_mod_521()
1210 r_d[i] &= BN_NIST_521_TOP_MASK; in BN_nist_mod_521()
1212 bn_add_words(r_d, r_d, t_d, BN_NIST_521_TOP); in BN_nist_mod_521()
1213 res = bn_sub_words(t_d, r_d, _nist_p_521, in BN_nist_mod_521()
1215 ? r_d in BN_nist_mod_521()
1217 nist_cp_bn(r_d, res, BN_NIST_521_TOP); in BN_nist_mod_521()