/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/hkdf/ |
H A D | hkdf_test.c | 37 uint_t info_len; member 62 .info_len = 10, 104 .info_len = 80, 126 .info_len = 0, 144 .info_len = 10, 161 .info_len = 0, 190 tv->salt_len, (uint8_t *)tv->info, tv->info_len, good, tv->okm_len); in run_test()
|
/freebsd/crypto/openssl/providers/implementations/kdfs/ |
H A D | sskdf.c | 61 size_t info_len; member 96 const unsigned char *info, size_t info_len, in SSKDF_hash_kdm() argument 107 if (z_len > SSKDF_MAX_INLEN || info_len > SSKDF_MAX_INLEN in SSKDF_hash_kdm() 135 && EVP_DigestUpdate(ctx, info, info_len))) in SSKDF_hash_kdm() 217 const unsigned char *info, size_t info_len, in SSKDF_mac_kdm() argument 228 if (z_len > SSKDF_MAX_INLEN || info_len > SSKDF_MAX_INLEN in SSKDF_mac_kdm() 257 && EVP_MAC_update(ctx, info, info_len))) in SSKDF_mac_kdm() 307 OPENSSL_clear_free(ctx->info, ctx->info_len); in sskdf_reset() 406 ctx->info, ctx->info_len, key, keylen); in sskdf_derive() 415 ctx->info, ctx->info_len, 0, key, keylen); in sskdf_derive() [all …]
|
H A D | hkdf.c | 52 const unsigned char *info, size_t info_len, 60 const unsigned char *info, size_t info_len, 87 size_t info_len; member 125 OPENSSL_clear_free(ctx->info, ctx->info_len); in kdf_hkdf_reset() 177 ctx->key, ctx->key_len, ctx->info, ctx->info_len, key, keylen); in kdf_hkdf_derive() 185 ctx->info_len, key, keylen); in kdf_hkdf_derive() 304 OPENSSL_clear_free(ctx->info, ctx->info_len); in kdf_hkdf_set_ctx_params() 312 ctx->info_len = sz; in kdf_hkdf_set_ctx_params() 344 if (ctx->info == NULL || ctx->info_len == 0) { in kdf_hkdf_get_ctx_params() 348 return OSSL_PARAM_set_octet_string(p, ctx->info, ctx->info_len); in kdf_hkdf_get_ctx_params() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | hkdf.c | 41 hkdf_sha512_expand(uint8_t *extract_key, uint8_t *info, uint_t info_len, in hkdf_sha512_expand() argument 63 crypto_mac_update(&ctx, info, info_len); in hkdf_sha512_expand() 83 uint_t salt_len, uint8_t *info, uint_t info_len, uint8_t *output_key, in hkdf_sha512() argument 94 ret = hkdf_sha512_expand(extract_key, info, info_len, output_key, in hkdf_sha512()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | hkdf.c | 63 hkdf_sha512_expand(uint8_t *extract_key, uint8_t *info, uint_t info_len, in hkdf_sha512_expand() argument 101 info_cd.cd_length = info_len; in hkdf_sha512_expand() 152 uint_t salt_len, uint8_t *info, uint_t info_len, uint8_t *output_key, in hkdf_sha512() argument 163 ret = hkdf_sha512_expand(extract_key, info, info_len, output_key, in hkdf_sha512()
|
/freebsd/sys/ofed/drivers/infiniband/core/ |
H A D | ib_ucm.c | 102 int info_len; member 292 uvt->info_len = evt->param.rej_rcvd.ari_length; in ib_ucm_event_process() 304 uvt->info_len = evt->param.apr_rcvd.info_len; in ib_ucm_event_process() 318 uvt->info_len = evt->param.sidr_rep_rcvd.info_len; in ib_ucm_event_process() 334 if (uvt->info_len) { in ib_ucm_event_process() 335 uvt->info = kmemdup(info, uvt->info_len, GFP_KERNEL); in ib_ucm_event_process() 448 if (cmd.info_len < uevent->info_len) { in ib_ucm_event() 453 uevent->info, uevent->info_len)) { in ib_ucm_event() 885 u8 info_len, in ib_ucm_send_info() argument 902 result = ib_ucm_alloc_data(&info, cmd.info, cmd.info_len); in ib_ucm_send_info() [all …]
|
/freebsd/usr.sbin/fwcontrol/ |
H A D | fwcontrol.c | 152 for (i = 0; i < data->info_len; i++) { in str2node() 160 if (i >= data->info_len) { in str2node() 186 printf("%d devices (info_len=%d)\n", data->n, data->info_len); in list_dev() 188 for (i = 0; i < data->info_len; i++) { in list_dev() 345 for (i = 0; i < data->info_len; i++) { in set_pri_req() 402 for (i = 0; i < data->info_len; i++) { in get_crom() 406 if (i == data->info_len) in get_crom() 440 if (hdr->info_len == 1) { in show_crom() 447 hdr->info_len, hdr->crc_len, hdr->crc); in show_crom()
|
/freebsd/sys/ofed/include/uapi/rdma/ |
H A D | ib_user_cm.h | 182 __u8 info_len; member 222 __u8 info_len; member 234 __u8 info_len; member
|
/freebsd/contrib/bearssl/src/kdf/ |
H A D | hkdf.c | 70 const void *info, size_t info_len, void *out, size_t out_len) in br_hkdf_produce() argument 91 br_hmac_update(&hmac_ctx, info, info_len); in br_hkdf_produce()
|
/freebsd/contrib/wpa/src/p2p/ |
H A D | p2p_build.c | 410 size_t info_len = 0; in p2p_buf_add_session_info() local 413 info_len = os_strlen(info); in p2p_buf_add_session_info() 417 wpabuf_put_le16(buf, (u16) info_len); in p2p_buf_add_session_info() 420 wpabuf_put_data(buf, info, info_len); in p2p_buf_add_session_info() 489 size_t info_len; in p2p_buf_add_service_info() local 493 info_len = sizeof(adv_id) + sizeof(config_methods) + sizeof(u8) + in p2p_buf_add_service_info() 496 if (info_len + *total_len > MAX_SVC_ADV_LEN) { in p2p_buf_add_service_info() 594 *total_len += info_len; in p2p_buf_add_service_info()
|
H A D | p2p_pd.c | 1522 size_t info_len = msg.session_info_len; in p2p_process_prov_disc_resp() local 1523 char *deferred_sess_resp = os_malloc(2 * info_len + 1); in p2p_process_prov_disc_resp() 1530 utf8_escape((char *) msg.session_info, info_len, in p2p_process_prov_disc_resp() 1531 deferred_sess_resp, 2 * info_len + 1); in p2p_process_prov_disc_resp()
|
/freebsd/sys/dev/firewire/ |
H A D | iec13213.h | 137 uint32_t info_len:8, member 143 info_len:8;
|
H A D | fwcrom.c | 75 if (hdr->info_len <= 1) { in crom_init_context() 80 p += 1 + hdr->info_len; in crom_init_context() 510 len = 1 + src->hdr.info_len; in crom_load() 565 src.hdr.info_len = 4; in main()
|
H A D | firewire.h | 283 uint16_t info_len; member
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | hkdf.h | 26 uint_t salt_len, uint8_t *info, uint_t info_len, uint8_t *output_key,
|
/freebsd/contrib/ofed/libibcm/ |
H A D | cm.h | 209 uint8_t info_len; member 232 uint8_t info_len; member
|
H A D | cm.c | 594 cmd->info_len = info_length; in cm_send_status() 740 cmd->info_len = param->info_length; in ib_cm_send_sidr_rep() 836 cmd->info_len = (uint8_t)(~0U); in ib_cm_get_event() 844 info = malloc(cmd->info_len); in ib_cm_get_event()
|
/freebsd/contrib/bearssl/inc/ |
H A D | bearssl_kdf.h | 203 const void *info, size_t info_len, void *out, size_t out_len);
|
/freebsd/sys/ofed/include/rdma/ |
H A D | ib_cm.h | 233 u8 info_len; member 266 u8 info_len; member
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | crypto_openssl.c | 4838 const char *label, const u8 *info, size_t info_len, in hpke_labeled_expand() argument 4865 labeled_info_len = 2 + 7 + suite_id_len + label_len + info_len; in hpke_labeled_expand() 4878 if (info && info_len) in hpke_labeled_expand() 4879 os_memcpy(pos, info, info_len); in hpke_labeled_expand() 4991 const u8 *info, size_t info_len) in hpke_key_schedule() argument 5007 info, info_len, in hpke_key_schedule() 5158 const u8 *info, size_t info_len, in hpke_base_seal_int() argument 5177 if (hpke_key_schedule(ctx, shared_secret, info, info_len) < 0) in hpke_base_seal_int() 5322 const u8 *info, size_t info_len, in hpke_base_open_int() argument 5340 if (hpke_key_schedule(ctx, shared_secret, info, info_len) < 0) in hpke_base_open_int() [all …]
|
H A D | crypto.h | 1364 const u8 *info, size_t info_len, 1377 const u8 *info, size_t info_len,
|
/freebsd/contrib/wpa/wpa_supplicant/ |
H A D | p2p_supplicant_sd.c | 565 size_t info_len = 0; in wpas_sd_req_asp() local 581 info_len = *info++; in wpas_sd_req_asp() 585 if (svc_len + (info_len ? info_len + 2 : 1) > query_len) { in wpas_sd_req_asp() 605 find_p2ps_substr(adv_data, info, info_len)) { in wpas_sd_req_asp()
|
/freebsd/contrib/wpa/src/common/ |
H A D | dpp_crypto.c | 1621 size_t info_len; in dpp_pkex_derive_z() local 1636 info_len = 2 * ETH_ALEN; in dpp_pkex_derive_z() 1638 info_len = 2; in dpp_pkex_derive_z() 1639 info_len += Mx_len + Nx_len + code_len; in dpp_pkex_derive_z() 1640 info = os_malloc(info_len); in dpp_pkex_derive_z() 1661 res = hmac_sha256_kdf(prk, hash_len, NULL, info, info_len, in dpp_pkex_derive_z() 1664 res = hmac_sha384_kdf(prk, hash_len, NULL, info, info_len, in dpp_pkex_derive_z() 1667 res = hmac_sha512_kdf(prk, hash_len, NULL, info, info_len, in dpp_pkex_derive_z()
|
H A D | sae.c | 559 size_t info_len = os_strlen(info); in hkdf_expand() local 563 (const u8 *) info, info_len, in hkdf_expand() 568 (const u8 *) info, info_len, in hkdf_expand() 574 (const u8 *) info, info_len, in hkdf_expand()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | pmeth_lib.c | 1039 size_t info_len = 0; in evp_pkey_ctx_add1_octet_string() local 1084 info_len = os_params[0].return_size; in evp_pkey_ctx_add1_octet_string() 1089 if (info_len > 0) { in evp_pkey_ctx_add1_octet_string() 1095 memcpy(&info[info_len], data, datalen); in evp_pkey_ctx_add1_octet_string()
|