Lines Matching refs:M
1606 pstm_int M[32], res; /* Keep this winsize based: (1 << max_winsize) */ in pstm_exptmod() local
1643 if ((err = pstm_init_size(pool, &M[1], res.used)) != PSTM_OKAY) { in pstm_exptmod()
1650 if ((err = pstm_mod(pool, G, P, &M[1])) != PSTM_OKAY) { in pstm_exptmod()
1654 if ((err = pstm_copy(G, &M[1])) != PSTM_OKAY) { in pstm_exptmod()
1658 if ((err = pstm_mulmod (pool, &M[1], &res, P, &M[1])) != PSTM_OKAY) { in pstm_exptmod()
1664 paDlen = ((M[1].used + 3) * 2) * sizeof(pstm_digit); in pstm_exptmod()
1669 if (pstm_init_copy(pool, &M[1 << (winsize - 1)], &M[1], 1) != PSTM_OKAY) { in pstm_exptmod()
1674 if ((err = pstm_sqr_comba (pool, &M[1 << (winsize - 1)], in pstm_exptmod()
1675 &M[1 << (winsize - 1)], paD, paDlen)) != PSTM_OKAY) { in pstm_exptmod()
1678 if ((err = pstm_montgomery_reduce(pool, &M[1 << (winsize - 1)], P, mp, in pstm_exptmod()
1687 if ((err = pstm_init_size(pool, &M[x], M[1<<(winsize-1)].alloc + 1)) in pstm_exptmod()
1690 pstm_clear(&M[y]); in pstm_exptmod()
1698 if ((err = pstm_mul_comba(pool, &M[x - 1], &M[1], &M[x], paD, paDlen)) in pstm_exptmod()
1702 if ((err = pstm_montgomery_reduce(pool, &M[x], P, mp, paD, paDlen)) != in pstm_exptmod()
1772 if ((err = pstm_mul_comba(pool, &res, &M[bitbuf], &res, paD, in pstm_exptmod()
1805 if ((err = pstm_mul_comba(pool, &res, &M[1], &res, paD, paDlen)) in pstm_exptmod()
1832 pstm_clear(&M[x]); in pstm_exptmod()
1835 LBL_M: pstm_clear(&M[1]); in pstm_exptmod()