Lines Matching refs:BN_NIST_224_TOP

14 #define BN_NIST_224_TOP (224+BN_BITS2-1)/BN_BITS2  macro
32 static const BN_ULONG _nist_p_224[][BN_NIST_224_TOP] = {
115 static const BN_ULONG _nist_p_224[][BN_NIST_224_TOP] = {
197 BN_NIST_224_TOP,
198 BN_NIST_224_TOP,
494 BN_ULONG bn[BN_NIST_224_TOP]; in BN_nist_mod_224()
495 unsigned int ui[BN_NIST_224_TOP * sizeof(BN_ULONG) / in BN_nist_mod_224()
498 BN_ULONG c_d[BN_NIST_224_TOP], *res; in BN_nist_mod_224()
520 if (!bn_wexpand(r, BN_NIST_224_TOP)) in BN_nist_mod_224()
523 nist_cp_bn(r_d, a_d, BN_NIST_224_TOP); in BN_nist_mod_224()
529 nist_cp_bn_0(c_d, a_d + (BN_NIST_224_TOP - 1), in BN_nist_mod_224()
530 top - (BN_NIST_224_TOP - 1), BN_NIST_224_TOP); in BN_nist_mod_224()
534 r_d[BN_NIST_224_TOP - 1] &= BN_MASK2l; in BN_nist_mod_224()
536 nist_cp_bn_0(buf.bn, a_d + BN_NIST_224_TOP, top - BN_NIST_224_TOP, in BN_nist_mod_224()
537 BN_NIST_224_TOP); in BN_nist_mod_224()
597 BN_ULONG t_d[BN_NIST_224_TOP]; 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()
617 BN_NIST_224_TOP); in BN_nist_mod_224()
619 carry = (int)(~(r_d[BN_NIST_224_TOP - 1] >> 32)) & 1; in BN_nist_mod_224()
631 BN_NIST_224_TOP); 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()
640 nist_cp_bn(r_d, res, BN_NIST_224_TOP); in BN_nist_mod_224()
641 r->top = BN_NIST_224_TOP; in BN_nist_mod_224()