| /freebsd/usr.bin/vtfontcvt/ |
| H A D | vtfontcvt.c | 49 static unsigned int width = 8, wbytes, height = 16; variable 264 hash = fnv_32_buf(bytes, wbytes * height, FNV1_32_INIT) % FONTCVT_NHASH; in add_glyph() 266 if (memcmp(gl->g_data, bytes, wbytes * height) == 0) { in add_glyph() 274 gl->g_data = xmalloc(wbytes * height); in add_glyph() 275 memcpy(gl->g_data, bytes, wbytes * height); in add_glyph() 361 s = wbytes * 8 - width; in split_row() 363 memcpy(left, line, wbytes); in split_row() 364 *(left + wbytes - 1) &= 0xFF << s; in split_row() 369 for (i = 0; i < wbytes; i++) { in split_row() 370 t = *(line + wbytes + i - 1); in split_row() [all …]
|
| /freebsd/crypto/krb5/src/plugins/preauth/spake/ |
| H A D | util.c | 110 krb5_data prf_input = empty_data(), wbytes = empty_data(); in derive_wbytes() local 118 ret = alloc_data(&wbytes, mult_len); in derive_wbytes() 130 ret = krb5_c_prfplus(context, ikey, &prf_input, &wbytes); in derive_wbytes() 134 *wbytes_out = wbytes; in derive_wbytes() 135 wbytes = empty_data(); in derive_wbytes() 139 zapfree(wbytes.data, wbytes.length); in derive_wbytes() 150 const krb5_keyblock *ikey, const krb5_data *wbytes, in derive_key() argument 169 dlist[3] = *wbytes; in derive_key()
|
| H A D | t_vectors.c | 387 krb5_data *body, wbytes, result, hash, empty = empty_data(); in run_test() local 406 check(derive_wbytes(ctx, t->group, ikey, &wbytes)); in run_test() 407 assert(data_eq(*w, wbytes)); in run_test() 411 check(group_result(ctx, gstate, t->group, &wbytes, x, S, &result)); in run_test() 418 check(group_result(ctx, gstate, t->group, &wbytes, y, T, &result)); in run_test() 430 check(derive_key(ctx, gstate, t->group, ikey, &wbytes, K, thash, body, 0, in run_test() 434 check(derive_key(ctx, gstate, t->group, ikey, &wbytes, K, thash, body, 1, in run_test() 438 check(derive_key(ctx, gstate, t->group, ikey, &wbytes, K, thash, body, 2, in run_test() 442 check(derive_key(ctx, gstate, t->group, ikey, &wbytes, K, thash, body, 3, in run_test() 448 krb5_free_data_contents(ctx, &wbytes); in run_test()
|
| H A D | spake_kdc.c | 224 krb5_data wbytes = empty_data(); in send_challenge() local 234 ret = derive_wbytes(context, group, ikey, &wbytes); in send_challenge() 237 ret = group_keygen(context, gstate, group, &wbytes, &kdcpriv, &kdcpub); in send_challenge() 275 zapfree(wbytes.data, wbytes.length); in send_challenge() 375 krb5_data wbytes = empty_data(), spakeresult = empty_data(); in verify_response() local 411 ret = derive_wbytes(context, group, ikey, &wbytes); in verify_response() 414 ret = group_result(context, gstate, group, &wbytes, &kdcpriv, in verify_response() 422 ret = derive_key(context, gstate, group, ikey, &wbytes, &spakeresult, in verify_response() 459 ret = derive_key(context, gstate, group, ikey, &wbytes, &spakeresult, in verify_response() 467 zapfree(wbytes.data, wbytes.length); in verify_response()
|
| H A D | groups.h | 65 const uint8_t *wbytes, krb5_boolean use_m, 77 const uint8_t *wbytes, const uint8_t *ourpriv, 121 int32_t group, const krb5_data *wbytes, 131 int32_t group, const krb5_data *wbytes,
|
| H A D | spake_client.c | 193 krb5_data wbytes = empty_data(); in process_challenge() local 230 ret = derive_wbytes(context, ch->group, st->initial_key, &wbytes); in process_challenge() 233 ret = group_keygen(context, gstate, ch->group, &wbytes, &clpriv, &clpub); in process_challenge() 236 ret = group_result(context, gstate, ch->group, &wbytes, &clpriv, in process_challenge() 247 ret = derive_key(context, gstate, ch->group, st->initial_key, &wbytes, in process_challenge() 256 ret = derive_key(context, gstate, ch->group, st->initial_key, &wbytes, in process_challenge() 292 zapfree(wbytes.data, wbytes.length); in process_challenge()
|
| H A D | openssl.c | 144 unmarshal_w(const groupdata *gdata, const uint8_t *wbytes) in unmarshal_w() argument 155 if (BN_bin2bn(wbytes, reg->mult_len, w) && in unmarshal_w() 164 ossl_keygen(krb5_context context, groupdata *gdata, const uint8_t *wbytes, in ossl_keygen() argument 174 w = unmarshal_w(gdata, wbytes); in ossl_keygen() 213 ossl_result(krb5_context context, groupdata *gdata, const uint8_t *wbytes, in ossl_result() argument 224 w = unmarshal_w(gdata, wbytes); in ossl_result()
|
| H A D | groups.c | 334 const krb5_data *wbytes, krb5_data *priv_out, krb5_data *pub_out) in group_keygen() argument 344 if (gdef == NULL || wbytes->length != gdef->reg->mult_len) in group_keygen() 357 ret = gdef->keygen(context, gdata, (uint8_t *)wbytes->data, gstate->is_kdc, in group_keygen() 375 const krb5_data *wbytes, const krb5_data *ourpriv, in group_result() argument 385 if (gdef == NULL || wbytes->length != gdef->reg->mult_len) in group_result() 399 ret = gdef->result(context, gdata, (uint8_t *)wbytes->data, in group_result()
|
| H A D | util.h | 51 const krb5_data *wbytes,
|
| H A D | edwards25519.c | 1648 const uint8_t *wbytes, krb5_boolean use_m, in builtin_edwards25519_keygen() argument 1669 memcpy(wreduced, wbytes, 32); in builtin_edwards25519_keygen() 1697 const uint8_t *wbytes, const uint8_t *ourpriv, in builtin_edwards25519_result() argument 1713 memcpy(wreduced, wbytes, 32); in builtin_edwards25519_result()
|
| /freebsd/sys/contrib/openzfs/lib/libzpool/ |
| H A D | util.c | 57 char rops[6], wops[6], rbytes[6], wbytes[6], rerr[6], werr[6], cerr[6]; in show_vdev_stats() local 96 nicenum(vs->vs_bytes[ZIO_TYPE_WRITE] / sec, wbytes, in show_vdev_stats() 97 sizeof (wbytes)); in show_vdev_stats() 109 rops, wops, rbytes, wbytes, rerr, werr, cerr); in show_vdev_stats()
|