Home
last modified time | relevance | path

Searched refs:MINT (Results 1 – 19 of 19) sorted by relevance

/illumos-gate/usr/src/lib/libmp/common/
H A Dlibmp.h46 extern void _mp_move(MINT *, MINT *);
47 extern void mp_invert(MINT *, MINT *, MINT *);
59 extern void gcd(MINT *, MINT *, MINT *);
60 extern void madd(MINT *, MINT *, MINT *);
61 extern void msub(MINT *, MINT *, MINT *);
62 extern void mdiv(MINT *, MINT *, MINT *, MINT *);
66 extern int msqrt(MINT *, MINT *, MINT *);
67 extern void mult(MINT *, MINT *, MINT *);
68 extern void pow(MINT *, MINT *, MINT *, MINT *);
69 extern void rpow(MINT *, short, MINT *);
[all …]
H A Dold_mp.c29 void gcd(MINT *a, MINT *b, MINT *c) { mp_gcd(a, b, c); } in gcd()
31 void madd(MINT *a, MINT *b, MINT *c) { mp_madd(a, b, c); } in madd()
33 void msub(MINT *a, MINT *b, MINT *c) { mp_msub(a, b, c); } in msub()
35 void mdiv(MINT *a, MINT *b, MINT *q, MINT *r) { mp_mdiv(a, b, q, r); } in mdiv()
37 void sdiv(MINT *a, short n, MINT *q, short *r) { mp_sdiv(a, n, q, r); } in sdiv()
41 void mout(MINT *a) { mp_mout(a); } in mout()
43 int msqrt(MINT *a, MINT *b, MINT *r) { return (mp_msqrt(a, b, r)); } in msqrt()
45 void mult(MINT *a, MINT *b, MINT *c) { mp_mult(a, b, c); } in mult()
47 void pow(MINT *a, MINT *b, MINT *c, MINT *d) { mp_pow(a, b, c, d); } in pow()
49 void rpow(MINT *a, short n, MINT *b) { mp_rpow(a, n, b); } in rpow()
[all …]
H A Dgcd.c27 mp_gcd(MINT *a, MINT *b, MINT *c) in mp_gcd()
29 MINT x, y, z, w; in mp_gcd()
47 mp_invert(MINT *x1, MINT *x0, MINT *c) in mp_invert()
49 MINT u2, u3; in mp_invert()
50 MINT v2, v3; in mp_invert()
51 MINT zero; in mp_invert()
52 MINT q, r; in mp_invert()
53 MINT t; in mp_invert()
54 MINT x0_prime; in mp_invert()
55 static MINT *one = NULL; in mp_invert()
H A Dutil.c26 _mp_move(MINT *a, MINT *b) in _mp_move()
69 _mp_xfree(MINT *c) in _mp_xfree()
81 _mp_mcan(MINT *a) in _mp_mcan()
108 MINT *
111 MINT *a; in mp_itom()
129 mp_mcmp(MINT *a, MINT *b) in mp_mcmp()
131 MINT c; in mp_mcmp()
167 MINT *
172 MINT *d; in mp_xtom()
173 MINT *sixteen; in mp_xtom()
[all …]
H A Dmout.c33 MINT x, y, ten; in m_in()
84 MINT x; in m_out()
123 static void s_div(MINT *, short, MINT *, short *);
126 mp_sdiv(MINT *a, short n, MINT *q, short *r) in mp_sdiv()
128 MINT x, y; in mp_sdiv()
150 s_div(MINT *a, short n, MINT *q, short *r) in s_div()
177 mp_min(MINT *a) in mp_min()
183 mp_omin(MINT *a) in mp_omin()
189 mp_mout(MINT *a) in mp_mout()
195 mp_omout(MINT *a) in mp_omout()
[all …]
H A Dmadd.c28 m_add(MINT *a, MINT *b, MINT *c) in m_add()
68 mp_madd(MINT *a, MINT *b, MINT *c) in mp_madd()
70 MINT x, y; in mp_madd()
106 m_sub(MINT *a, MINT *b, MINT *c) in m_sub()
111 MINT mone; in m_sub()
158 mp_msub(MINT *a, MINT *b, MINT *c) in mp_msub()
160 MINT x, y; in mp_msub()
H A Dpow.c29 mp_pow(MINT *a, MINT *b, MINT *c, MINT *d) in mp_pow()
32 MINT x, y; in mp_pow()
33 MINT a0, b0, c0; in mp_pow()
62 mp_rpow(MINT *a, short n, MINT *b) in mp_rpow()
64 MINT x, y; in mp_rpow()
H A Dmdiv.c30 static void m_div(MINT *, MINT *, MINT *, MINT *);
33 mp_mdiv(MINT *a, MINT *b, MINT *q, MINT *r) in mp_mdiv()
35 MINT x, y; in mp_mdiv()
148 m_div(MINT *a, MINT *b, MINT *q, MINT *r) in m_div()
150 MINT u, v, x, w; in m_div()
H A Dmult.c26 static void m_mult(MINT *, MINT *, MINT *);
29 mp_mult(MINT *a, MINT *b, MINT *c) in mp_mult()
70 m_mult(MINT *a, MINT *b, MINT *c) in m_mult()
H A Dmsqrt.c27 mp_msqrt(MINT *a, MINT *b, MINT *r) in mp_msqrt()
29 MINT a0, x, junk, y; in mp_msqrt()
/illumos-gate/usr/src/head/
H A Dmp.h48 typedef struct mint MINT; typedef
51 extern void mp_gcd(MINT *, MINT *, MINT *);
52 extern void mp_madd(MINT *, MINT *, MINT *);
53 extern void mp_msub(MINT *, MINT *, MINT *);
54 extern void mp_mdiv(MINT *, MINT *, MINT *, MINT *);
55 extern void mp_sdiv(MINT *, short, MINT *, short *);
58 extern int mp_msqrt(MINT *, MINT *, MINT *);
59 extern void mp_mult(MINT *, MINT *, MINT *);
60 extern void mp_pow(MINT *, MINT *, MINT *, MINT *);
61 extern void mp_rpow(MINT *, short, MINT *);
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh_common/
H A Dgeneric_key.c108 MINT *pk = mp_itom(0); /* Initial public key */ in __generic_gen_dhkeys()
109 MINT *sk = mp_itom(0); /* Initial private key */ in __generic_gen_dhkeys()
110 MINT *tmp; in __generic_gen_dhkeys()
111 MINT *base = mp_itom(BASE); /* We shift by BASEBITS */ in __generic_gen_dhkeys()
114 MINT *modulus = mp_xtom(xmodulus); in __generic_gen_dhkeys()
183 MINT *a; in extractdeskeys()
190 extern void _mp_move(MINT *, MINT *); in extractdeskeys()
246 MINT *pk = mp_xtom(pkey); in __generic_common_dhkeys()
247 MINT *sk = mp_xtom(skey); in __generic_common_dhkeys()
248 MINT *modulus = mp_xtom(xmodulus); in __generic_common_dhkeys()
[all …]
/illumos-gate/usr/src/lib/libnsl/key/
H A Dgen_dhkeys.c43 extern void _mp_move(MINT *, MINT *);
48 static MINT *MODULUS_192_0;
120 MINT *pk = mp_itom(0);
121 MINT *sk = mp_itom(0);
122 MINT *tmp;
124 MINT *root = mp_itom(PROOT);
203 MINT *ck; in __extractdeskey()
206 MINT *a;
267 MINT *common; in __gen_common_dhkeys_g()
268 MINT *public; in __gen_common_dhkeys_g()
[all …]
/illumos-gate/usr/src/cmd/acct/
H A Dacctprc2.c106 ub->ut_cpu[0] = MINT(p->pt_cpu[0]); in enter()
107 ub->ut_cpu[1] = MINT(p->pt_cpu[1]); in enter()
109 ub->ut_kcore[0] = memk * MINT(p->pt_cpu[0]); in enter()
110 ub->ut_kcore[1] = memk * MINT(p->pt_cpu[1]); in enter()
120 (*pt)->ut_cpu[0] += MINT(p->pt_cpu[0]); in enter()
121 (*pt)->ut_cpu[1] += MINT(p->pt_cpu[1]); in enter()
122 (*pt)->ut_kcore[0] += memk * MINT(p->pt_cpu[0]); in enter()
123 (*pt)->ut_kcore[1] += memk * MINT(p->pt_cpu[1]); in enter()
H A Dacctprc.c131 ub->ut_cpu[0] = MINT(p->pt_cpu[0]); in enter()
132 ub->ut_cpu[1] = MINT(p->pt_cpu[1]); in enter()
134 ub->ut_kcore[0] = memk * MINT(p->pt_cpu[0]); in enter()
135 ub->ut_kcore[1] = memk * MINT(p->pt_cpu[1]); in enter()
145 (*pt)->ut_cpu[0] += MINT(p->pt_cpu[0]); in enter()
146 (*pt)->ut_cpu[1] += MINT(p->pt_cpu[1]); in enter()
147 (*pt)->ut_kcore[0] += memk * MINT(p->pt_cpu[0]); in enter()
148 (*pt)->ut_kcore[1] += memk * MINT(p->pt_cpu[1]); in enter()
H A Dacctcms.c261 cmt.tcm_cpu = MINT(cpu); in tdofile()
263 cmt.tcm_real = MINT(real); in tdofile()
265 cmt.tcm_kcore = MINT(KCORE(mem)); in tdofile()
278 cmt.tcm_cpu = MINT(cpu); in tdofile()
280 cmt.tcm_real = MINT(real); in tdofile()
361 dtmp = MINT(cpu); in dofile()
366 dtmp = MINT(real); in dofile()
371 dtmp = MINT(KCORE(mem)); in dofile()
409 dtmp = MINT(cpu); in dofile()
414 dtmp = MINT(real); in dofile()
[all …]
H A Dacctdef.h113 #define MINT(tics) ((double) tics)/(60*HZ) macro
H A Dacctcom.c581 pf(MINT(KCORE(mem))); in println()
/illumos-gate/usr/src/cmd/keyserv/
H A Dsetkey.c64 static MINT *MODULUS;
1209 MINT *ck; in extractdeskey()
1212 void _mp_move(MINT *, MINT *);
1213 MINT *a;
1283 MINT *public;
1284 MINT *secret;
1285 MINT *common;
1646 MINT *public;
1647 MINT *secret;
1648 MINT *common;