Home
last modified time | relevance | path

Searched refs:MP_DIGIT_BIT (Results 1 – 8 of 8) sorted by relevance

/titanic_50/usr/src/common/mpi/
H A Dmplogic.c134 ix = bitNum / MP_DIGIT_BIT; in mpl_set_bit()
141 bitNum = bitNum % MP_DIGIT_BIT; in mpl_set_bit()
163 ix = bitNum / MP_DIGIT_BIT; in mpl_get_bit()
166 bit = bitNum % MP_DIGIT_BIT; in mpl_get_bit()
183 mp_size rshift = (lsbNum % MP_DIGIT_BIT); in mpl_get_bits()
184 mp_size lsWndx = (lsbNum / MP_DIGIT_BIT); in mpl_get_bits()
189 ARGCHK(MP_HOWMANY(lsbNum, MP_DIGIT_BIT) <= MP_USED(a), MP_RANGE); in mpl_get_bits()
191 if ((numBits + lsbNum % MP_DIGIT_BIT <= MP_DIGIT_BIT) || in mpl_get_bits()
195 mask &= ((digit[0] >> rshift) | (digit[1] << (MP_DIGIT_BIT - rshift))); in mpl_get_bits()
224 bits += ix * MP_DIGIT_BIT; in mpl_significant_bits()
H A Dmpi.h217 #define MP_DIGIT_BIT (CHAR_BIT*sizeof(mp_digit)) macro
221 #define MP_HALF_DIGIT_BIT (MP_DIGIT_BIT/2)
367 #define DIGIT_BIT MP_DIGIT_BIT
H A Dmpi.c2052 n += MP_DIGIT_BIT; in mp_trailing_zeros()
2196 ix = MP_HOWMANY(k, MP_DIGIT_BIT) + MP_USED(p) + 1; in s_mp_fixup_reciprocal()
2203 int j = MP_MIN(k, MP_DIGIT_BIT); in s_mp_fixup_reciprocal()
2205 if (j < MP_DIGIT_BIT) { in s_mp_fixup_reciprocal()
2303 if (k <= MP_DIGIT_BIT) { in s_mp_invmod_2d()
2305 if (k < MP_DIGIT_BIT) in s_mp_invmod_2d()
3009 dshift = d / MP_DIGIT_BIT; in s_mp_mul_2d()
3010 bshift = d % MP_DIGIT_BIT; in s_mp_mul_2d()
3012 mask = ((mp_digit)~0 << (MP_DIGIT_BIT - bshift)); in s_mp_mul_2d()
3778 w >>= MP_DIGIT_BIT; in s_mp_sub()
[all …]
H A Dmp_gf2m.c575 top_bit <<= MP_DIGIT_BIT - 1; in mp_bpoly2arr()
582 for (j = MP_DIGIT_BIT - 1; j >= 0; j--) { in mp_bpoly2arr()
584 if (k < max) p[k] = MP_DIGIT_BIT * i + j; in mp_bpoly2arr()
/titanic_50/usr/src/common/crypto/ecc/
H A Dec2_mont.c233 j = MP_DIGIT_BIT - 1; in ec_GF2m_pt_mul_mont()
235 top_bit <<= MP_DIGIT_BIT - 1; in ec_GF2m_pt_mul_mont()
247 j = MP_DIGIT_BIT - 1; in ec_GF2m_pt_mul_mont()
262 j = MP_DIGIT_BIT - 1; in ec_GF2m_pt_mul_mont()
H A Decp_mont.c96 i += MP_DIGIT_BIT - 1; in GFMethod_consGFp_mont()
97 mmm->b = i - i % MP_DIGIT_BIT; in GFMethod_consGFp_mont()
H A Decp_521.c89 | (MP_DIGIT(a, 1+i) << (MP_DIGIT_BIT-9)); in ec_GFp_nistp521_mod()
H A Decl-priv.h85 bout = (w >> MP_DIGIT_BIT) & 1; }