Lines Matching defs:BN_NIST_224_TOP
64 #define BN_NIST_224_TOP (224+BN_BITS2-1)/BN_BITS2
80 static const BN_ULONG _nist_p_224[][BN_NIST_224_TOP] = {
152 static const BN_ULONG _nist_p_224[][BN_NIST_224_TOP] = {
229 BN_NIST_224_TOP,
230 BN_NIST_224_TOP,
437 BN_ULONG t_d[BN_NIST_224_TOP],
438 buf[BN_NIST_224_TOP],
439 c_d[BN_NIST_224_TOP],
466 if (!bn_wexpand(r, BN_NIST_224_TOP))
469 nist_cp_bn(r_d, a_d, BN_NIST_224_TOP);
476 nist_cp_bn_0(t_d, a_d + (BN_NIST_224_TOP-1), top - (BN_NIST_224_TOP-1), BN_NIST_224_TOP);
480 r_d[BN_NIST_224_TOP-1] &= BN_MASK2l;
482 nist_cp_bn_0(buf, a_d + BN_NIST_224_TOP, top - BN_NIST_224_TOP, BN_NIST_224_TOP);
485 carry = (int)bn_add_words(r_d, r_d, t_d, BN_NIST_224_TOP);
487 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_224_TOP);
489 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_224_TOP);
491 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_224_TOP);
494 carry = (int)(r_d[BN_NIST_224_TOP-1]>>32);
499 carry = (int)bn_sub_words(r_d,r_d,_nist_p_224[carry-1],BN_NIST_224_TOP);
501 carry=(int)(~(r_d[BN_NIST_224_TOP-1]>>32))&1;
512 carry = (int)bn_add_words(r_d,r_d,_nist_p_224[-carry-1],BN_NIST_224_TOP);
520 mask = 0-(size_t)(*u.f)(c_d,r_d,_nist_p_224[0],BN_NIST_224_TOP);
523 nist_cp_bn(r_d, res, BN_NIST_224_TOP);
524 r->top = BN_NIST_224_TOP;