/titanic_41/usr/src/lib/libmp/common/ |
H A D | libmp.h | 45 extern void _mp_xfree(MINT *); 46 extern void _mp_move(MINT *, MINT *); 47 extern void mp_invert(MINT *, MINT *, MINT *); 49 extern void _mp_mcan(MINT *); 50 extern char *mtox(MINT *); 51 extern int mp_omin(MINT *); 52 extern void mp_omout(MINT *); 53 extern void mp_fmout(MINT *, FILE *); 54 extern int mp_fmin(MINT *, FILE *); 59 extern void gcd(MINT *, MINT *, MINT *); [all …]
|
H A D | old_mp.c | 29 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() 39 int min(MINT *a) { return (mp_min(a)); } in min() 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() [all …]
|
H A D | gcd.c | 27 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 D | util.c | 30 _mp_move(MINT *a, MINT *b) in _mp_move() 75 _mp_xfree(MINT *c) in _mp_xfree() 87 _mp_mcan(MINT *a) in _mp_mcan() 114 MINT * 117 MINT *a; in mp_itom() 119 a = malloc(sizeof (MINT)); in mp_itom() 135 mp_mcmp(MINT *a, MINT *b) in mp_mcmp() 137 MINT c; in mp_mcmp() 173 MINT * 177 MINT *m = mp_itom(0); in mp_xtom() [all …]
|
H A D | mout.c | 29 m_in(MINT *a, short b, FILE *f) in m_in() 31 MINT x, y, ten; in m_in() 76 m_out(MINT *a, short b, FILE *f) in m_out() 80 MINT x; in m_out() 119 static void s_div(MINT *, short, MINT *, short *); 122 mp_sdiv(MINT *a, short n, MINT *q, short *r) in mp_sdiv() 124 MINT x, y; in mp_sdiv() 146 s_div(MINT *a, short n, MINT *q, short *r) in s_div() 173 mp_min(MINT *a) in mp_min() 179 mp_omin(MINT *a) in mp_omin() [all …]
|
H A D | madd.c | 28 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 D | pow.c | 29 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 D | mult.c | 26 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 D | mdiv.c | 28 static void m_div(MINT *, MINT *, MINT *, MINT *); 31 mp_mdiv(MINT *a, MINT *b, MINT *q, MINT *r) in mp_mdiv() 33 MINT x, y; in mp_mdiv() 146 m_div(MINT *a, MINT *b, MINT *q, MINT *r) in m_div() 148 MINT u, v, x, w; in m_div()
|
H A D | msqrt.c | 27 mp_msqrt(MINT *a, MINT *b, MINT *r) in mp_msqrt() 29 MINT a0, x, junk, y; in mp_msqrt()
|
/titanic_41/usr/src/head/ |
H A D | mp.h | 48 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 *); 56 extern int mp_min(MINT *); 57 extern void mp_mout(MINT *); 58 extern int mp_msqrt(MINT *, MINT *, MINT *); 59 extern void mp_mult(MINT *, MINT *, MINT *); [all …]
|
/titanic_41/usr/src/lib/gss_mechs/mech_dh/dh_common/ |
H A D | generic_key.c | 110 MINT *pk = mp_itom(0); /* Initial public key */ in __generic_gen_dhkeys() 111 MINT *sk = mp_itom(0); /* Initial private key */ in __generic_gen_dhkeys() 112 MINT *tmp; in __generic_gen_dhkeys() 113 MINT *base = mp_itom(BASE); /* We shift by BASEBITS */ in __generic_gen_dhkeys() 114 MINT *root = mp_itom(proot); /* We get the root as a MINT */ in __generic_gen_dhkeys() 116 MINT *modulus = mp_xtom(xmodulus); in __generic_gen_dhkeys() 183 extractdeskeys(MINT *ck, int keylen, des_block keys[], int keynum) in extractdeskeys() 185 MINT *a; in extractdeskeys() 192 extern void _mp_move(MINT *, MINT *); in extractdeskeys() 248 MINT *pk = mp_xtom(pkey); in __generic_common_dhkeys() [all …]
|
/titanic_41/usr/src/lib/libnsl/key/ |
H A D | gen_dhkeys.c | 45 extern void _mp_move(MINT *, MINT *); 50 static MINT *MODULUS_192_0; 122 MINT *pk = mp_itom(0); 123 MINT *sk = mp_itom(0); 124 MINT *tmp; 125 MINT *base = mp_itom(BASE/2); /* BASE won't fit in a short */ 126 MINT *root = mp_itom(PROOT); 127 MINT *modulus = mp_xtom(HEXMODULUS); 205 MINT *ck; in __extractdeskey() 208 MINT *a; [all …]
|
/titanic_41/usr/src/cmd/acct/ |
H A D | acctprc2.c | 106 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 D | acctprc.c | 132 ub->ut_cpu[0] = MINT(p->pt_cpu[0]); in enter() 133 ub->ut_cpu[1] = MINT(p->pt_cpu[1]); in enter() 135 ub->ut_kcore[0] = memk * MINT(p->pt_cpu[0]); in enter() 136 ub->ut_kcore[1] = memk * MINT(p->pt_cpu[1]); in enter() 146 (*pt)->ut_cpu[0] += MINT(p->pt_cpu[0]); in enter() 147 (*pt)->ut_cpu[1] += MINT(p->pt_cpu[1]); in enter() 148 (*pt)->ut_kcore[0] += memk * MINT(p->pt_cpu[0]); in enter() 149 (*pt)->ut_kcore[1] += memk * MINT(p->pt_cpu[1]); in enter()
|
H A D | acctcms.c | 264 cmt.tcm_cpu = MINT(cpu); in tdofile() 266 cmt.tcm_real = MINT(real); in tdofile() 268 cmt.tcm_kcore = MINT(KCORE(mem)); in tdofile() 281 cmt.tcm_cpu = MINT(cpu); in tdofile() 283 cmt.tcm_real = MINT(real); in tdofile() 285 cmt.tcm_kcore = MINT(KCORE(mem)); in tdofile() 364 dtmp = MINT(cpu); in dofile() 369 dtmp = MINT(real); in dofile() 374 dtmp = MINT(KCORE(mem)); in dofile() 412 dtmp = MINT(cpu); in dofile() [all …]
|
H A D | acctdef.h | 115 #define MINT(tics) ((double) tics)/(60*HZ) macro
|
H A D | acctcom.c | 584 pf(MINT(KCORE(mem))); in println()
|
/titanic_41/usr/src/cmd/keyserv/ |
H A D | setkey.c | 66 static MINT *MODULUS; 1211 MINT *ck; in extractdeskey() 1214 void _mp_move(MINT *, MINT *); 1215 MINT *a; 1285 MINT *public; 1286 MINT *secret; 1287 MINT *common; 1648 MINT *public; 1649 MINT *secret; 1650 MINT *common;
|