Home
last modified time | relevance | path

Searched refs:k1 (Results 1 – 25 of 41) sorted by relevance

12

/titanic_41/usr/src/common/crypto/ecc/
H A Decl_mult.c114 ec_pts_mul_basic(const mp_int *k1, const mp_int *k2, const mp_int *px, in ec_pts_mul_basic() argument
122 ARGCHK(!((k1 == NULL) in ec_pts_mul_basic()
127 if (k1 == NULL) { in ec_pts_mul_basic()
130 return ECPoint_mul(group, k1, NULL, NULL, rx, ry); in ec_pts_mul_basic()
135 MP_CHECKOK(mp_init(&sx, FLAG(k1))); in ec_pts_mul_basic()
136 MP_CHECKOK(mp_init(&sy, FLAG(k1))); in ec_pts_mul_basic()
138 MP_CHECKOK(ECPoint_mul(group, k1, NULL, NULL, &sx, &sy)); in ec_pts_mul_basic()
169 ec_pts_mul_simul_w2(const mp_int *k1, const mp_int *k2, const mp_int *px, in ec_pts_mul_simul_w2() argument
180 ARGCHK(!((k1 == NULL) in ec_pts_mul_simul_w2()
185 if (k1 == NULL) { in ec_pts_mul_simul_w2()
[all …]
H A Decp_jac.c416 ec_GFp_pts_mul_jac(const mp_int *k1, const mp_int *k2, const mp_int *px, in ec_GFp_pts_mul_jac() argument
436 ARGCHK(!((k1 == NULL) in ec_GFp_pts_mul_jac()
441 if (k1 == NULL) { in ec_GFp_pts_mul_jac()
444 return ECPoint_mul(group, k1, NULL, NULL, rx, ry); in ec_GFp_pts_mul_jac()
450 MP_CHECKOK(mp_init(&precomp[i][j][0], FLAG(k1))); in ec_GFp_pts_mul_jac()
451 MP_CHECKOK(mp_init(&precomp[i][j][1], FLAG(k1))); in ec_GFp_pts_mul_jac()
457 if (mpl_significant_bits(k1) < mpl_significant_bits(k2)) { in ec_GFp_pts_mul_jac()
459 b = k1; in ec_GFp_pts_mul_jac()
472 a = k1; in ec_GFp_pts_mul_jac()
528 MP_CHECKOK(mp_init(&rz, FLAG(k1))); in ec_GFp_pts_mul_jac()
H A Dec.c87 ec_points_mul(const ECParams *params, const mp_int *k1, const mp_int *k2, in ec_points_mul() argument
109 if (k1 != NULL) { in ec_points_mul()
110 mp_tohex(k1, mpstr); in ec_points_mul()
112 mp_todecimal(k1, mpstr); in ec_points_mul()
188 irr_arr[1] = params->fieldID.k1; in ec_points_mul()
200 CHECK_MPI_OK( ECPoints_mul(group, k1, k2, &Px, &Py, &Qx, &Qy) ); in ec_points_mul()
202 CHECK_MPI_OK( ECPoints_mul(group, k1, NULL, NULL, NULL, &Qx, &Qy) ); in ec_points_mul()
295 key->ecParams.fieldID.k1 = ecParams->fieldID.k1; in ec_NewKey()
1088 dstParams->fieldID.k1 = srcParams->fieldID.k1; in EC_CopyParams()
H A Decl.h88 mp_err ECPoints_mul(const ECGroup *group, const mp_int *k1,
H A Decl-priv.h195 mp_err (*points_mul) (const mp_int *k1, const mp_int *k2,
259 mp_err ec_pts_mul_basic(const mp_int *k1, const mp_int *k2,
262 mp_err ec_pts_mul_simul_w2(const mp_int *k1, const mp_int *k2,
/titanic_41/usr/src/common/bzip2/
H A Dbzlib.c700 UChar k1; in unRLE_obuf_to_output_FAST() local
727 BZ_GET_FAST(k1); BZ_RAND_UPD_MASK; in unRLE_obuf_to_output_FAST()
728 k1 ^= BZ_RAND_MASK; s->nblock_used++; in unRLE_obuf_to_output_FAST()
730 if (k1 != s->k0) { s->k0 = k1; continue; }; in unRLE_obuf_to_output_FAST()
733 BZ_GET_FAST(k1); BZ_RAND_UPD_MASK; in unRLE_obuf_to_output_FAST()
734 k1 ^= BZ_RAND_MASK; s->nblock_used++; in unRLE_obuf_to_output_FAST()
736 if (k1 != s->k0) { s->k0 = k1; continue; }; in unRLE_obuf_to_output_FAST()
739 BZ_GET_FAST(k1); BZ_RAND_UPD_MASK; in unRLE_obuf_to_output_FAST()
740 k1 ^= BZ_RAND_MASK; s->nblock_used++; in unRLE_obuf_to_output_FAST()
742 if (k1 != s->k0) { s->k0 = k1; continue; }; in unRLE_obuf_to_output_FAST()
[all …]
/titanic_41/usr/src/uts/common/gssapi/mechs/krb5/crypto/arcfour/
H A Dk5_arcfour.c82 krb5_keyblock k1, k2, k3; local
103 bcopy(key, &k1, sizeof (krb5_keyblock));
104 k1.length=d1.length;
105 k1.contents= (void *) d1.data;
206 bcopy(k1.contents, k2.contents, k2.length);
207 (void) memset(k1.contents+7, 0xab, 9);
210 kptr = &k1;
241 ret = krb5_hmac(context, &k1, &checksum, &d3);
243 ret = krb5_hmac(context, hash, &k1, 1, &checksum, &d3);
279 krb5_keyblock k1,k2,k3, *kptr; local
[all …]
/titanic_41/usr/src/cmd/prstat/
H A Dprsort.c166 long k1, k2; in list_insert() local
169 k1 = list_getkeyval(list, ptr); in list_insert()
171 if (compare_keys(list, k1, k2) >= 0) { in list_insert()
190 ulong_t k1, k2; in list_preinsert() local
196 k1 = list_getkeyval(list, list->l_ptrs[list->l_used - 1]); in list_preinsert()
198 if (compare_keys(list, k1, k2) >= 0) /* skip insertion */ in list_preinsert()
200 k1 = list_getkeyval(list, list->l_ptrs[0]); in list_preinsert()
201 if (compare_keys(list, k2, k1) >= 0) { /* add at the head */ in list_preinsert()
/titanic_41/usr/src/lib/libmvec/common/
H A D__vatan2f.c59 int i, k0 = 0, k1, k2, hx, sx, sy; in __vatan2f() local
275 k1 = (hy1 - hx + 0x3f800000) & 0xfff80000; in __vatan2f()
276 if (k1 >= 0x3C800000) /* if |x| >= (1/64)... */ in __vatan2f()
278 *(int*)&base1 = k1; in __vatan2f()
279 k1 = (k1 - 0x3C800000) >> 18; /* (index >> 19) << 1) */ in __vatan2f()
280 k1 += 4; in __vatan2f()
285 k1 = 0; in __vatan2f()
407 ah1 += __vlibm_TBL_atan1[k1]; in __vatan2f()
457 ah1 += __vlibm_TBL_atan1[k1]; in __vatan2f()
H A D__vexpf.c244 int k0, k1, k2, k3, k4; in __vexpf() local
285 k1 = (int)x1; in __vexpf()
291 x1 -= (double)k1; in __vexpf()
303 lres1 = ((long long *)__TBL_exp2f)[k1 & 255]; in __vexpf()
310 lres1 += (long long)k1 << 44; in __vexpf()
H A D__vexp.c413 int k0, k1, k2, k3, k4, k5; in __vexp() local
474 k1 = j1 >> 8; in __vexp()
521 if (k1 < -1021) { in __vexp()
522 HI(y1) += (k1 + 0x3ef) << 20; in __vexp()
525 HI(y1) += k1 << 20; in __vexp()
/titanic_41/usr/src/common/net/wanboot/crypt/
H A Ddes3.c92 uint8_t *k1 = (uint8_t *)key; in des3_key() local
93 uint8_t *k2 = k1 + DES_KEY_SIZE; in des3_key()
96 des_key(ks->ksch_decrypt1, k1, B_TRUE); in des3_key()
97 des_key(ks->ksch_encrypt1, k1, B_FALSE); in des3_key()
/titanic_41/usr/src/cmd/ssh/libssh/common/
H A Dcipher.c315 EVP_CIPHER_CTX k1, k2, k3; member
323 u_char *k1, *k2, *k3; in ssh1_3des_init() local
333 k1 = k2 = k3 = (u_char *) key; in ssh1_3des_init()
339 k1 += 16; in ssh1_3des_init()
341 EVP_CIPHER_CTX_init(&c->k1); in ssh1_3des_init()
344 if (EVP_CipherInit(&c->k1, EVP_des_cbc(), k1, NULL, enc) == 0 || in ssh1_3des_init()
364 if (EVP_Cipher(&c->k1, dest, (u_char *)src, len) == 0 || in ssh1_3des_cbc()
502 memcpy(iv, desc->k1.iv, 8); in cipher_get_keyiv()
541 memcpy(desc->k1.iv, iv, 8); in cipher_set_keyiv()
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dencrypt.h74 #define SAMEKEY(k1, k2) (!memcmp((void *)k1, (void *)k2, sizeof (Block)) argument
/titanic_41/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_utils.c155 __bt_cmp(t, k1, e) in __bt_cmp() argument
157 const DBT *k1;
202 return ((*t->bt_cmp)(k1, &k2));
/titanic_41/usr/src/cmd/localedef/
H A Dcollate.c339 int32_t k1 = ((const weight_t *)n1)->pri; in weight_compare() local
342 return (k1 < k2 ? -1 : k1 > k2 ? 1 : 0); in weight_compare()
392 wchar_t k1 = ((const collchar_t *)n1)->wc; in collchar_compare() local
395 return (k1 < k2 ? -1 : k1 > k2 ? 1 : 0); in collchar_compare()
401 int32_t k1 = ((const subst_t *)n1)->key; in subst_compare() local
404 return (k1 < k2 ? -1 : k1 > k2 ? 1 : 0); in subst_compare()
/titanic_41/usr/src/uts/common/os/
H A Dkstat_fr.c335 const kstat_t *k1 = a1; in kstat_compare_bykid() local
338 if (k1->ks_kid < k2->ks_kid) in kstat_compare_bykid()
340 if (k1->ks_kid > k2->ks_kid) in kstat_compare_bykid()
342 return (kstat_zone_compare((ekstat_t *)k1, (ekstat_t *)k2)); in kstat_compare_bykid()
348 const kstat_t *k1 = a1; in kstat_compare_byname() local
352 s = strcmp(k1->ks_module, k2->ks_module); in kstat_compare_byname()
358 if (k1->ks_instance < k2->ks_instance) in kstat_compare_byname()
360 if (k1->ks_instance > k2->ks_instance) in kstat_compare_byname()
363 s = strcmp(k1->ks_name, k2->ks_name); in kstat_compare_byname()
369 return (kstat_zone_compare((ekstat_t *)k1, (ekstat_t *)k2)); in kstat_compare_byname()
H A Dmodhash.c282 uintptr_t k1 = (uintptr_t)key1; in mod_hash_ptrkey_cmp() local
284 if (k1 > k2) in mod_hash_ptrkey_cmp()
286 else if (k1 < k2) in mod_hash_ptrkey_cmp()
/titanic_41/usr/src/lib/libast/amd64/include/ast/
H A Dcdt.h250 #define _DTCMP(dt,k1,k2,dc,cmpf,sz) \ argument
251 ((cmpf) ? (*cmpf)(dt,k1,k2,dc) : \
252 ((sz) <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) )
/titanic_41/usr/src/lib/libast/common/include/
H A Dcdt.h250 #define _DTCMP(dt,k1,k2,dc,cmpf,sz) \ argument
251 ((cmpf) ? (*cmpf)(dt,k1,k2,dc) : \
252 ((sz) <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) )
/titanic_41/usr/src/lib/libast/sparcv9/include/ast/
H A Dcdt.h250 #define _DTCMP(dt,k1,k2,dc,cmpf,sz) \ argument
251 ((cmpf) ? (*cmpf)(dt,k1,k2,dc) : \
252 ((sz) <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) )
/titanic_41/usr/src/lib/libast/i386/include/ast/
H A Dcdt.h250 #define _DTCMP(dt,k1,k2,dc,cmpf,sz) \ argument
251 ((cmpf) ? (*cmpf)(dt,k1,k2,dc) : \
252 ((sz) <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) )
/titanic_41/usr/src/lib/libast/sparc/include/ast/
H A Dcdt.h250 #define _DTCMP(dt,k1,k2,dc,cmpf,sz) \ argument
251 ((cmpf) ? (*cmpf)(dt,k1,k2,dc) : \
252 ((sz) <= 0 ? strcmp(k1,k2) : memcmp(k1,k2,sz)) )
/titanic_41/usr/src/cmd/fm/fminject/common/
H A Dinj_string.c218 inj_hashcmp_string(void *k1, void *k2) in inj_hashcmp_string() argument
220 return (strcmp(k1, k2)); in inj_hashcmp_string()
/titanic_41/usr/src/lib/libipmi/common/
H A Dipmi_sdr.c638 int m, b, k1, k2; in ipmi_sdr_conv_reading() local
642 k1 = __TO_B_EXP(sensor->is_fs_bacc); in ipmi_sdr_conv_reading()
648 (b * pow(10, k1))) * pow(10, k2)); in ipmi_sdr_conv_reading()
656 (b * pow(10, k1))) * pow(10, k2)); in ipmi_sdr_conv_reading()

12