Lines Matching defs:BN_NIST_256_TOP
64 #define BN_NIST_256_TOP (256+BN_BITS2-1)/BN_BITS2
96 static const BN_ULONG _nist_p_256[][BN_NIST_256_TOP] = {
178 static const BN_ULONG _nist_p_256[][BN_NIST_256_TOP] = {
254 BN_NIST_256_TOP,
255 BN_NIST_256_TOP,
559 BN_ULONG t_d[BN_NIST_256_TOP],
560 buf[BN_NIST_256_TOP], c_d[BN_NIST_256_TOP], *res;
586 if (!bn_wexpand(r, BN_NIST_256_TOP))
589 nist_cp_bn(r_d, a_d, BN_NIST_256_TOP);
593 nist_cp_bn_0(buf, a_d + BN_NIST_256_TOP, top - BN_NIST_256_TOP,
594 BN_NIST_256_TOP);
604 carry = (int)bn_add_words(t_d, t_d, c_d, BN_NIST_256_TOP);
610 for (i = BN_NIST_256_TOP; i != 0; --i) {
618 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_256_TOP);
623 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_256_TOP);
628 carry += (int)bn_add_words(r_d, r_d, t_d, BN_NIST_256_TOP);
633 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_256_TOP);
638 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_256_TOP);
643 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_256_TOP);
648 carry -= (int)bn_sub_words(r_d, r_d, t_d, BN_NIST_256_TOP);
655 BN_NIST_256_TOP);
659 BN_NIST_256_TOP);
665 mask = 0 - (size_t)(*u.f) (c_d, r_d, _nist_p_256[0], BN_NIST_256_TOP);
668 nist_cp_bn(r_d, res, BN_NIST_256_TOP);
669 r->top = BN_NIST_256_TOP;
751 t_d, BN_NIST_256_TOP);