Searched defs:k1 (Results 1 - 19 of 19) sorted by relevance

/illumos-gate/usr/src/common/crypto/ecc/
H A Decl_mult.c109 /* Elliptic curve scalar-point multiplication. Computes R(x, y) = k1 * G +
111 * points on the elliptic curve. Allows k1 = NULL or { k2, P } = NULL.
114 ec_pts_mul_basic(const mp_int *k1, const mp_int *k2, const mp_int *px, argument
122 ARGCHK(!((k1 == NULL)
127 if (k1 == NULL) {
130 return ECPoint_mul(group, k1, NULL, NULL, rx, ry);
135 MP_CHECKOK(mp_init(&sx, FLAG(k1)));
136 MP_CHECKOK(mp_init(&sy, FLAG(k1)));
138 MP_CHECKOK(ECPoint_mul(group, k1, NULL, NULL, &sx, &sy));
161 /* Elliptic curve scalar-point multiplication. Computes R(x, y) = k1 *
169 ec_pts_mul_simul_w2(const mp_int *k1, const mp_int *k2, const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry, const ECGroup *group) argument
319 ECPoints_mul(const ECGroup *group, const mp_int *k1, const mp_int *k2, const mp_int *px, const mp_int *py, mp_int *rx, mp_int *ry) argument
[all...]
H A Decp_jac.c408 /* Elliptic curve scalar-point multiplication. Computes R(x, y) = k1 * G +
410 * points on the elliptic curve. Allows k1 = NULL or { k2, P } = NULL.
416 ec_GFp_pts_mul_jac(const mp_int *k1, const mp_int *k2, const mp_int *px, argument
436 ARGCHK(!((k1 == NULL)
441 if (k1 == NULL) {
444 return ECPoint_mul(group, k1, NULL, NULL, rx, ry);
450 MP_CHECKOK(mp_init(&precomp[i][j][0], FLAG(k1)));
451 MP_CHECKOK(mp_init(&precomp[i][j][1], FLAG(k1)));
456 /* assign {k1, k2} = {a, b} such that len(a) >= len(b) */
457 if (mpl_significant_bits(k1) < mpl_significant_bit
[all...]
H A Dec.c83 * Computes scalar point multiplication pointQ = k1 * G + k2 * pointP for
87 ec_points_mul(const ECParams *params, const mp_int *k1, const mp_int *k2, argument
109 if (k1 != NULL) {
110 mp_tohex(k1, mpstr);
111 printf("ec_points_mul: scalar k1: %s\n", mpstr);
112 mp_todecimal(k1, mpstr);
113 printf("ec_points_mul: scalar k1: %s (dec)\n", mpstr);
188 irr_arr[1] = params->fieldID.k1;
200 CHECK_MPI_OK( ECPoints_mul(group, k1, k2, &Px, &Py, &Qx, &Qy) );
202 CHECK_MPI_OK( ECPoints_mul(group, k1, NUL
[all...]
H A Decc_impl.h149 int k1; /* first coefficient of pentanomial or member in struct:ECFieldIDStr
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/arcfour/
H A Dk5_arcfour.c82 krb5_keyblock k1, k2, k3; local
96 * d1 is the contents buffer for key k1.
97 * k1 = HMAC(input_key, salt)
103 bcopy(key, &k1, sizeof (krb5_keyblock));
104 k1.length=d1.length;
105 k1.contents= (void *) d1.data;
129 * k3 = HMAC(k1, checksum)
206 bcopy(k1.contents, k2.contents, k2.length);
207 (void) memset(k1.contents+7, 0xab, 9);
210 kptr = &k1;
279 krb5_keyblock k1,k2,k3, *kptr; local
[all...]
/illumos-gate/usr/src/lib/libmvec/common/
H A D__vexpf.c244 int k0, k1, k2, k3, k4; local
285 k1 = (int)x1;
291 x1 -= (double)k1;
303 lres1 = ((long long *)__TBL_exp2f)[k1 & 255];
310 lres1 += (long long)k1 << 44;
H A D__vexp.c413 int k0, k1, k2, k3, k4, k5; local
474 k1 = j1 >> 8;
521 if (k1 < -1021) {
522 HI(y1) += (k1 + 0x3ef) << 20;
525 HI(y1) += k1 << 20;
H A D__vatan2f.c59 int i, k0 = 0, k1, k2, hx, sx, sy; local
275 k1 = (hy1 - hx + 0x3f800000) & 0xfff80000;
276 if (k1 >= 0x3C800000) /* if |x| >= (1/64)... */
278 *(int*)&base1 = k1;
279 k1 = (k1 - 0x3C800000) >> 18; /* (index >> 19) << 1) */
280 k1 += 4;
285 k1 = 0;
407 ah1 += __vlibm_TBL_atan1[k1];
457 ah1 += __vlibm_TBL_atan1[k1];
[all...]
/illumos-gate/usr/src/common/net/wanboot/crypt/
H A Ddes3.c92 uint8_t *k1 = (uint8_t *)key; local
93 uint8_t *k2 = k1 + DES_KEY_SIZE;
96 des_key(ks->ksch_decrypt1, k1, B_TRUE);
97 des_key(ks->ksch_encrypt1, k1, B_FALSE);
/illumos-gate/usr/src/cmd/prstat/
H A Dprsort.c166 long k1, k2; local
169 k1 = list_getkeyval(list, ptr);
171 if (compare_keys(list, k1, k2) >= 0) {
190 ulong_t k1, k2; local
196 k1 = list_getkeyval(list, list->l_ptrs[list->l_used - 1]);
198 if (compare_keys(list, k1, k2) >= 0) /* skip insertion */
200 k1 = list_getkeyval(list, list->l_ptrs[0]);
201 if (compare_keys(list, k2, k1) >= 0) { /* add at the head */
/illumos-gate/usr/src/cmd/fm/fminject/common/
H A Dinj_string.c218 inj_hashcmp_string(void *k1, void *k2) argument
220 return (strcmp(k1, k2));
/illumos-gate/usr/src/cmd/stat/mpstat/
H A Dmpstat.c305 agg_stat(kstat_t *k1, kstat_t *k2, char *name) argument
307 kstat_named_t *ksn = kstat_data_lookup(k1, name);
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_sdr.c638 int m, b, k1, k2; local
642 k1 = __TO_B_EXP(sensor->is_fs_bacc);
648 (b * pow(10, k1))) * pow(10, k2));
656 (b * pow(10, k1))) * pow(10, k2));
/illumos-gate/usr/src/uts/common/os/
H A Dmodhash.c282 uintptr_t k1 = (uintptr_t)key1; local
284 if (k1 > k2)
286 else if (k1 < k2)
H A Dkstat_fr.c335 const kstat_t *k1 = a1; local
338 if (k1->ks_kid < k2->ks_kid)
340 if (k1->ks_kid > k2->ks_kid)
342 return (kstat_zone_compare((ekstat_t *)k1, (ekstat_t *)k2));
348 const kstat_t *k1 = a1; local
352 s = strcmp(k1->ks_module, k2->ks_module);
358 if (k1->ks_instance < k2->ks_instance)
360 if (k1->ks_instance > k2->ks_instance)
363 s = strcmp(k1->ks_name, k2->ks_name);
369 return (kstat_zone_compare((ekstat_t *)k1, (ekstat_
[all...]
/illumos-gate/usr/src/cmd/localedef/
H A Dcollate.c339 int32_t k1 = ((const weight_t *)n1)->pri; local
342 return (k1 < k2 ? -1 : k1 > k2 ? 1 : 0);
392 wchar_t k1 = ((const collchar_t *)n1)->wc; local
395 return (k1 < k2 ? -1 : k1 > k2 ? 1 : 0);
401 int32_t k1 = ((const subst_t *)n1)->key; local
404 return (k1 < k2 ? -1 : k1 > k2 ? 1 : 0);
/illumos-gate/usr/src/common/bzip2/
H A Dbzlib.c710 UChar k1; local
737 BZ_GET_FAST(k1); BZ_RAND_UPD_MASK;
738 k1 ^= BZ_RAND_MASK; s->nblock_used++;
740 if (k1 != s->k0) { s->k0 = k1; continue; };
743 BZ_GET_FAST(k1); BZ_RAND_UPD_MASK;
744 k1 ^= BZ_RAND_MASK; s->nblock_used++;
746 if (k1 != s->k0) { s->k0 = k1; continue; };
749 BZ_GET_FAST(k1); BZ_RAND_UPD_MAS
880 UChar k1; local
[all...]
/illumos-gate/usr/src/cmd/keyserv/
H A Dsetkey.c342 cmpkeybuf3(keybuf3 *k1, keybuf3 *k2) argument
344 if ((k1 == NULL) || (k2 == NULL)) {
346 k1, k2);
349 if (k1->keybuf3_len != k2->keybuf3_len) {
352 return (!memcmp(k1->keybuf3_val, k2->keybuf3_val, k1->keybuf3_len));
/illumos-gate/usr/src/uts/common/io/
H A Dcryptmod.c1752 crypto_key_t k1, k2; local
1812 "arcfour_hmac_md5_decrypt: do_hmac(k1)"
1837 k1.ck_format = CRYPTO_KEY_RAW;
1838 k1.ck_length = CRYPT_ARCFOUR_KEYBYTES * 8;
1839 k1.ck_data = k1data;
1842 tmi->dec_data.d_encr_key.ck_length = k1.ck_length;
1851 result = do_hmac(md5_hmac_mech, &k1,
1985 crypto_key_t k1, k2; local
2058 "arcfour_hmac_md5_encrypt: do_hmac(k1)"
2113 k1
[all...]

Completed in 107 milliseconds