Home
last modified time | relevance | path

Searched refs:MP_USED (Results 1 – 17 of 17) sorted by relevance

/titanic_41/usr/src/common/mpi/
H A Dmpmontg.c102 i = MP_USED(T) + MP_USED(&mmm->N) + 2; in s_mp_redc()
104 for (i = 0; i < MP_USED(&mmm->N); ++i ) { in s_mp_redc()
141 if (MP_USED(a) < MP_USED(b)) { in s_mp_mul_mont()
147 MP_USED(c) = 1; MP_DIGIT(c, 0) = 0; in s_mp_mul_mont()
148 ib = MP_USED(a) + MP_MAX(MP_USED(b), MP_USED(&mmm->N)) + 2; in s_mp_mul_mont()
152 useda = MP_USED(a); in s_mp_mul_mont()
160 usedb = MP_USED(b); in s_mp_mul_mont()
170 if (usedb < MP_USED(&mmm->N)) { in s_mp_mul_mont()
171 for (usedb = MP_USED(&mmm->N); ib < usedb; ++ib ) { in s_mp_mul_mont()
H A Dmp_gf2m.c220 if (MP_USED(a) >= MP_USED(b)) { in mp_badd()
223 used_pa = MP_USED(a); in mp_badd()
224 used_pb = MP_USED(b); in mp_badd()
228 used_pa = MP_USED(b); in mp_badd()
229 used_pb = MP_USED(a); in mp_badd()
246 MP_USED(c) = used_pa; in mp_badd()
309 if (MP_USED(a) < MP_USED(b)) { in mp_bmul()
315 MP_USED(c) = 1; MP_DIGIT(c, 0) = 0; in mp_bmul()
319 s_bmul_d(MP_DIGITS(a), MP_USED(a), *pb++, MP_DIGITS(c)); in mp_bmul()
322 a_used = MP_USED(a); in mp_bmul()
[all …]
H A Dmplogic.c135 if (ix + 1 > MP_USED(a)) { in mpl_set_bit()
164 ARGCHK(ix <= MP_USED(a) - 1, MP_RANGE); in mpl_get_bit()
189 ARGCHK(MP_HOWMANY(lsbNum, MP_DIGIT_BIT) <= MP_USED(a), MP_RANGE); in mpl_get_bits()
192 (lsWndx + 1 >= MP_USED(a))) { in mpl_get_bits()
212 ix = MP_USED(a); in mpl_significant_bits()
213 for (ix = MP_USED(a); ix > 0; ) { in mpl_significant_bits()
H A Dmpi.c847 if (MP_USED(a) < MP_USED(b)) { in mp_mul()
853 MP_USED(c) = 1; MP_DIGIT(c, 0) = 0; in mp_mul()
858 if ((MP_USED(a) == MP_USED(b)) && IS_POWER_OF_2(MP_USED(b))) { in mp_mul()
859 if (MP_USED(a) == 4) { in mp_mul()
863 if (MP_USED(a) == 8) { in mp_mul()
867 if (MP_USED(a) == 16) { in mp_mul()
871 if (MP_USED(a) == 32) { in mp_mul()
879 s_mpv_mul_d(MP_DIGITS(a), MP_USED(a), *pb++, MP_DIGITS(c)); in mp_mul()
882 useda = MP_USED(a); in mp_mul()
883 usedb = MP_USED(b); in mp_mul()
[all …]
H A Dmpi-priv.h194 { mp_size used = MP_USED(mp); \
196 MP_USED(mp) = used; \
303 (s_mpv_mul_d_add_prop(MP_DIGITS(a), MP_USED(a), b, MP_DIGITS(c) + off), MP_OKAY)
H A Dmpi.h232 #define MP_USED(MP) ((MP)->used) macro
373 #define USED(MP) MP_USED(MP)
/titanic_41/usr/src/common/crypto/ecc/
H A Dec2_163.c70 if (MP_USED(r) < 6) { in ec_GF2m_163_mod()
74 MP_USED(r) = 6; in ec_GF2m_163_mod()
91 if (MP_USED(r) < 11) { in ec_GF2m_163_mod()
95 MP_USED(r) = 11; in ec_GF2m_163_mod()
141 if (MP_USED(a) < 3) { in ec_GF2m_163_sqr()
144 if (MP_USED(r) < 6) { in ec_GF2m_163_sqr()
147 MP_USED(r) = 6; in ec_GF2m_163_sqr()
149 if (MP_USED(a) < 6) { in ec_GF2m_163_sqr()
152 if (MP_USED(r) < 12) { in ec_GF2m_163_sqr()
155 MP_USED(r) = 12; in ec_GF2m_163_sqr()
[all …]
H A Dec2_193.c70 if (MP_USED(r) < 7) { in ec_GF2m_193_mod()
74 MP_USED(r) = 7; in ec_GF2m_193_mod()
95 if (MP_USED(r) < 13) { in ec_GF2m_193_mod()
99 MP_USED(r) = 13; in ec_GF2m_193_mod()
149 if (MP_USED(a) < 4) { in ec_GF2m_193_sqr()
152 if (MP_USED(r) < 7) { in ec_GF2m_193_sqr()
155 MP_USED(r) = 7; in ec_GF2m_193_sqr()
157 if (MP_USED(a) < 7) { in ec_GF2m_193_sqr()
160 if (MP_USED(r) < 13) { in ec_GF2m_193_sqr()
163 MP_USED(r) = 13; in ec_GF2m_193_sqr()
[all …]
H A Dec2_233.c70 if (MP_USED(r) < 8) { in ec_GF2m_233_mod()
74 MP_USED(r) = 8; in ec_GF2m_233_mod()
99 if (MP_USED(r) < 15) { in ec_GF2m_233_mod()
103 MP_USED(r) = 15; in ec_GF2m_233_mod()
165 if (MP_USED(a) < 4) { in ec_GF2m_233_sqr()
168 if (MP_USED(r) < 8) { in ec_GF2m_233_sqr()
171 MP_USED(r) = 8; in ec_GF2m_233_sqr()
173 if (MP_USED(a) < 8) { in ec_GF2m_233_sqr()
176 if (MP_USED(r) < 15) { in ec_GF2m_233_sqr()
179 MP_USED(r) = 15; in ec_GF2m_233_sqr()
[all …]
H A Decl_gf.c98 switch(MP_USED(&meth->irr)) { in GFMethod_consGFp()
280 switch(MP_USED(a)) { in ec_GFp_add_3()
288 switch(MP_USED(b)) { in ec_GFp_add_3()
319 MP_USED(r) = 3; in ec_GFp_add_3()
363 switch(MP_USED(a)) { in ec_GFp_add_4()
373 switch(MP_USED(b)) { in ec_GFp_add_4()
409 MP_USED(r) = 4; in ec_GFp_add_4()
457 switch(MP_USED(a)) { in ec_GFp_add_5()
469 switch(MP_USED(b)) { in ec_GFp_add_5()
495 MP_USED(r) = 5; in ec_GFp_add_5()
[all …]
H A Decp_192.c64 mp_size a_used = MP_USED(a); in ec_GFp_nistp192_mod()
184 MP_USED(r) = 6; in ec_GFp_nistp192_mod()
286 MP_USED(r) = 3; in ec_GFp_nistp192_mod()
308 switch(MP_USED(a)) { in ec_GFp_nistp192_add()
316 switch(MP_USED(b)) { in ec_GFp_nistp192_add()
368 MP_USED(r) = 3; in ec_GFp_nistp192_add()
389 switch(MP_USED(a)) { in ec_GFp_nistp192_sub()
398 switch(MP_USED(b)) { in ec_GFp_nistp192_sub()
447 MP_USED(r) = 3; in ec_GFp_nistp192_sub()
H A Decp_521.c74 MP_USED(&m1) = ECP521_DIGITS; in ec_GFp_nistp521_mod()
87 for (i = FIRST_DIGIT; i < MP_USED(a)-1; i++) { in ec_GFp_nistp521_mod()
99 MP_USED(r) = ECP521_DIGITS; in ec_GFp_nistp521_mod()
H A Decp_224.c64 mp_size a_used = MP_USED(a); in ec_GFp_nistp224_mod()
200 MP_USED(r) = 7; in ec_GFp_nistp224_mod()
304 MP_USED(r) = 4; in ec_GFp_nistp224_mod()
H A Decp_256.c62 mp_size a_used = MP_USED(a); in ec_GFp_nistp256_mod()
231 MP_USED(r) = 8; in ec_GFp_nistp256_mod()
257 while (MP_USED(r) > 8) { in ec_GFp_nistp256_mod()
375 MP_USED(r) = 4; in ec_GFp_nistp256_mod()
H A Decp_384.c73 MP_USED(&m[i]) = 12; in ec_GFp_nistp384_mod()
81 MP_USED(&m[i]) = 6; in ec_GFp_nistp384_mod()
H A Decl_mult.c75 MP_USED(&kt) = MP_USED(k); in ECPoint_mul()
H A Dec2_mont.c232 i = MP_USED(n) - 1; in ec_GF2m_pt_mul_mont()