| /drivers/gpu/drm/amd/display/modules/hdcp/ |
| A D | hdcp_log.c | 58 sizeof(hdcp->auth.msg.hdcp1.bksv)); in mod_hdcp_log_ddc_trace() 60 sizeof(hdcp->auth.msg.hdcp1.bcaps)); in mod_hdcp_log_ddc_trace() 65 sizeof(hdcp->auth.msg.hdcp1.an)); in mod_hdcp_log_ddc_trace() 67 sizeof(hdcp->auth.msg.hdcp1.aksv)); in mod_hdcp_log_ddc_trace() 69 sizeof(hdcp->auth.msg.hdcp1.ainfo)); in mod_hdcp_log_ddc_trace() 71 (uint8_t *)&hdcp->auth.msg.hdcp1.r0p, in mod_hdcp_log_ddc_trace() 72 sizeof(hdcp->auth.msg.hdcp1.r0p)); in mod_hdcp_log_ddc_trace() 77 hdcp->auth.msg.hdcp1.ksvlist_size); in mod_hdcp_log_ddc_trace() 79 sizeof(hdcp->auth.msg.hdcp1.vp)); in mod_hdcp_log_ddc_trace() 91 hdcp->auth.msg.hdcp2.ake_stored_km, in mod_hdcp_log_ddc_trace() [all …]
|
| A D | hdcp_ddc.c | 275 hdcp->auth.msg.hdcp1.bksv, in mod_hdcp_read_bksv() 282 &hdcp->auth.msg.hdcp1.bcaps, in mod_hdcp_read_bcaps() 315 hdcp->auth.msg.hdcp1.ksvlist, in mod_hdcp_read_ksvlist() 330 &hdcp->auth.msg.hdcp1.vp[0], 4); in mod_hdcp_read_vp() 335 &hdcp->auth.msg.hdcp1.vp[4], 4); in mod_hdcp_read_vp() 340 &hdcp->auth.msg.hdcp1.vp[8], 4); in mod_hdcp_read_vp() 372 hdcp->auth.msg.hdcp1.aksv, in mod_hdcp_write_aksv() 379 &hdcp->auth.msg.hdcp1.ainfo, in mod_hdcp_write_ainfo() 386 hdcp->auth.msg.hdcp1.an, in mod_hdcp_write_an() 610 hdcp->auth.msg.hdcp2.lc_init, in mod_hdcp_write_lc_init() [all …]
|
| A D | hdcp_psp.c | 37 in->session_handle = hdcp->auth.id; in hdcp2_message_init() 280 sizeof(hdcp->auth.msg.hdcp1.aksv)); in mod_hdcp_hdcp1_create_session() 282 sizeof(hdcp->auth.msg.hdcp1.an)); in mod_hdcp_hdcp1_create_session() 408 hdcp->auth.msg.hdcp1.ksvlist_size); in mod_hdcp_hdcp1_validate_ksvlist_vp() 411 sizeof(hdcp->auth.msg.hdcp1.vp)); in mod_hdcp_hdcp1_validate_ksvlist_vp() 414 is_dp_hdcp(hdcp) ? hdcp->auth.msg.hdcp1.binfo_dp : hdcp->auth.msg.hdcp1.bstatus; in mod_hdcp_hdcp1_validate_ksvlist_vp() 631 sizeof(hdcp->auth.msg.hdcp2.ake_cert)); in mod_hdcp_hdcp2_validate_ake_cert() 647 memcpy(hdcp->auth.msg.hdcp2.ake_stored_km, in mod_hdcp_hdcp2_validate_ake_cert() 697 hdcp->auth.msg.hdcp2.ake_pairing_info, sizeof(hdcp->auth.msg.hdcp2.ake_pairing_info)); in mod_hdcp_hdcp2_validate_h_prime() 812 memcpy(hdcp->auth.msg.hdcp2.ske_eks, in mod_hdcp_hdcp2_prepare_eks() [all …]
|
| A D | hdcp2_execution.c | 54 HDCP_2_2_DP_HDCP_CAPABLE(hdcp->auth.msg.hdcp2.rxcaps_dp[2]) ? in check_hdcp2_capable() 98 status = (size == sizeof(hdcp->auth.msg.hdcp2.ake_cert)) ? in check_ake_cert_available() 120 status = (size == sizeof(hdcp->auth.msg.hdcp2.ake_h_prime)) ? in check_h_prime_available() 142 status = (size == sizeof(hdcp->auth.msg.hdcp2.ake_pairing_info)) ? in check_pairing_info_available() 168 status = (size == sizeof(hdcp->auth.msg.hdcp2.lc_l_prime)) ? in poll_l_prime_available() 198 return HDCP_2_2_DEV_COUNT_LO(hdcp->auth.msg.hdcp2.rx_id_list[2]) + in get_device_count() 199 (HDCP_2_2_DEV_COUNT_HI(hdcp->auth.msg.hdcp2.rx_id_list[1]) << 4); in get_device_count() 242 hdcp->auth.msg.hdcp2.rx_id_list_size = in process_rxstatus() 243 sizeof(hdcp->auth.msg.hdcp2.rx_id_list); in process_rxstatus() 245 hdcp->auth.msg.hdcp2.rx_id_list_size = in process_rxstatus() [all …]
|
| A D | hdcp1_execution.c | 34 memcpy(bksv, hdcp->auth.msg.hdcp1.bksv, sizeof(hdcp->auth.msg.hdcp1.bksv)); in validate_bksv() 48 return (hdcp->auth.msg.hdcp1.bstatus & DP_BSTATUS_READY) ? in check_ksv_ready() 58 return (hdcp->auth.msg.hdcp1.bcaps & DP_BCAPS_HDCP_CAPABLE) ? in check_hdcp_capable_dp() 68 status = (hdcp->auth.msg.hdcp1.bstatus & in check_r0p_available_dp() 81 return (hdcp->auth.msg.hdcp1.bstatus & in check_link_integrity_dp() 90 return (hdcp->auth.msg.hdcp1.bstatus & DP_BSTATUS_REAUTH_REQ) ? in check_no_reauthentication_request_dp() 119 status = DRM_HDCP_MAX_DEVICE_EXCEEDED(hdcp->auth.msg.hdcp1.bstatus) ? in check_no_max_devs() 128 DRM_HDCP_NUM_DOWNSTREAM(hdcp->auth.msg.hdcp1.binfo_dp) : in get_device_count() 129 DRM_HDCP_NUM_DOWNSTREAM(hdcp->auth.msg.hdcp1.bstatus); in get_device_count() 202 if (hdcp->auth.msg.hdcp1.ainfo) { in exchange_ksvs() [all …]
|
| A D | hdcp.c | 194 if (hdcp->auth.trans_input.hdcp1.create_session != UNKNOWN) { in reset_authentication() 203 memset(&hdcp->auth, 0, sizeof(struct mod_hdcp_authentication)); in reset_authentication() 207 if (hdcp->auth.trans_input.hdcp2.create_session == PASS) { in reset_authentication() 217 memset(&hdcp->auth, 0, sizeof(struct mod_hdcp_authentication)); in reset_authentication() 222 memset(&hdcp->auth, 0, sizeof(struct mod_hdcp_authentication)); in reset_authentication() 547 exec_status = execution(hdcp, &event_ctx, &hdcp->auth.trans_input); in mod_hdcp_process_event() 549 hdcp, &event_ctx, &hdcp->auth.trans_input, output); in mod_hdcp_process_event()
|
| A D | hdcp2_transition.c | 346 hdcp->auth.count.stream_management_retry_count++; in mod_hdcp_hdcp2_transition() 360 if (hdcp->auth.count.stream_management_retry_count > 10) { in mod_hdcp_hdcp2_transition() 363 hdcp->auth.count.stream_management_retry_count++; in mod_hdcp_hdcp2_transition() 681 if (hdcp->auth.count.stream_management_retry_count > 10) { in mod_hdcp_hdcp2_dp_transition() 684 hdcp->auth.count.stream_management_retry_count++; in mod_hdcp_hdcp2_dp_transition()
|
| /drivers/char/tpm/ |
| A D | tpm2-sessions.c | 245 auth = chip->auth; in tpm_buf_append_name() 346 auth = chip->auth; in tpm_buf_append_hmac_session() 588 struct tpm2_auth *auth = chip->auth; in tpm_buf_fill_hmac_session() local 644 if (handle == auth->handle && auth->attrs == a) { in tpm_buf_fill_hmac_session() 670 + auth->passphrase_len, "CFB", auth->our_nonce, in tpm_buf_fill_hmac_session() 749 struct tpm2_auth *auth = chip->auth; in tpm_buf_check_hmac_response() local 883 struct tpm2_auth *auth = chip->auth; in tpm2_end_auth_session() local 915 tpm2_KDFa(auth->salt, sizeof(auth->salt), "ATH", auth->tpm_nonce, in tpm2_parse_start_auth_session() 916 auth->our_nonce, sizeof(auth->session_key), in tpm2_parse_start_auth_session() 981 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in tpm2_start_auth_session() [all …]
|
| /drivers/target/iscsi/ |
| A D | iscsi_target_auth.c | 139 struct iscsi_node_auth *auth, in chap_server_open() argument 147 if (!(auth->naf_flags & NAF_USERID_SET) || in chap_server_open() 148 !(auth->naf_flags & NAF_PASSWORD_SET)) { in chap_server_open() 242 struct iscsi_node_auth *auth, in chap_server_compute_hash() argument 316 compare_len = strlen(auth->userid) + 1; in chap_server_compute_hash() 317 if (strncmp(chap_n, auth->userid, compare_len) != 0) { in chap_server_compute_hash() 384 strlen(auth->password)); in chap_server_compute_hash() 412 if (!auth->authenticate_target) { in chap_server_compute_hash() 527 strlen(auth->password_mutual)); in chap_server_compute_hash() 573 struct iscsi_node_auth *auth, in chap_main_loop() argument [all …]
|
| A D | iscsi_target_configfs.c | 385 if (count >= sizeof(auth->name)) \ 387 snprintf(auth->name, sizeof(auth->name), "%s", page); \ 389 auth->naf_flags &= ~flags; \ 391 auth->naf_flags |= flags; \ 395 auth->authenticate_target = 1; \ 397 auth->authenticate_target = 0; \ 841 snprintf(auth->name, sizeof(auth->name), "%s", page); \ 843 auth->naf_flags &= ~flags; \ 845 auth->naf_flags |= flags; \ 849 auth->authenticate_target = 1; \ [all …]
|
| /drivers/nvme/common/ |
| A D | Makefile | 5 obj-$(CONFIG_NVME_AUTH) += nvme-auth.o 8 nvme-auth-y += auth.o
|
| /drivers/gpu/drm/ |
| A D | drm_auth.c | 96 struct drm_auth *auth = data; in drm_getmagic() local 106 auth->magic = file_priv->magic; in drm_getmagic() 108 drm_dbg_core(dev, "%u\n", auth->magic); in drm_getmagic() 116 struct drm_auth *auth = data; in drm_authmagic() local 119 drm_dbg_core(dev, "%u\n", auth->magic); in drm_authmagic() 122 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic() 125 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic()
|
| A D | drm_ioc32.c | 168 int auth; /* Is client authenticated? */ member 195 c32.auth = client.auth; in compat_drm_getclient()
|
| /drivers/platform/x86/hp/hp-bioscfg/ |
| A D | spmobj-attributes.c | 71 u16 *auth = authbuf; in hp_populate_security_buffer() local 81 auth = hp_ascii_to_utf16_unicode(auth, authentication); in hp_populate_security_buffer() 82 if (!auth) in hp_populate_security_buffer() 97 auth = hp_ascii_to_utf16_unicode(auth, strprefix); in hp_populate_security_buffer() 100 if (!auth) { in hp_populate_security_buffer()
|
| /drivers/crypto/ |
| A D | atmel-authenc.h | 32 void atmel_sha_authenc_free(struct atmel_sha_authenc_ctx *auth); 33 int atmel_sha_authenc_setkey(struct atmel_sha_authenc_ctx *auth, 37 struct atmel_sha_authenc_ctx *auth,
|
| A D | atmel-sha.c | 2170 struct atmel_sha_authenc_ctx *auth; in atmel_sha_authenc_spawn() local 2210 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in atmel_sha_authenc_spawn() 2211 if (!auth) { in atmel_sha_authenc_spawn() 2215 auth->tfm = tfm; in atmel_sha_authenc_spawn() 2217 return auth; in atmel_sha_authenc_spawn() 2228 if (auth) in atmel_sha_authenc_free() 2229 crypto_free_ahash(auth->tfm); in atmel_sha_authenc_free() 2230 kfree(auth); in atmel_sha_authenc_free() 2237 struct crypto_ahash *tfm = auth->tfm; in atmel_sha_authenc_setkey() 2246 struct atmel_sha_authenc_ctx *auth, in atmel_sha_authenc_schedule() argument [all …]
|
| /drivers/thunderbolt/ |
| A D | icm.c | 2232 get_route(auth->reply.route_hi, auth->reply.route_lo), in icm_usb4_switch_nvm_auth_complete() 2233 auth->reply.hdr.flags, auth->reply.status); in icm_usb4_switch_nvm_auth_complete() 2238 icm->last_nvm_auth = auth; in icm_usb4_switch_nvm_auth_complete() 2249 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in icm_usb4_switch_nvm_authenticate() 2250 if (!auth) in icm_usb4_switch_nvm_authenticate() 2253 auth->icm = icm; in icm_usb4_switch_nvm_authenticate() 2279 auth); in icm_usb4_switch_nvm_authenticate() 2288 kfree(auth); in icm_usb4_switch_nvm_authenticate() 2368 if (auth && auth->reply.route_hi == sw->config.route_hi && in icm_usb4_switch_nvm_authenticate_status() 2371 tb_route(sw), auth->reply.hdr.flags, auth->reply.status); in icm_usb4_switch_nvm_authenticate_status() [all …]
|
| /drivers/net/wireless/quantenna/qtnfmac/ |
| A D | event.c | 561 struct cfg80211_external_auth_params auth = {0}; in qtnf_event_handle_external_auth() local 576 memcpy(auth.ssid.ssid, ev->ssid, len); in qtnf_event_handle_external_auth() 577 auth.ssid.ssid_len = len; in qtnf_event_handle_external_auth() 580 auth.key_mgmt_suite = le32_to_cpu(ev->akm_suite); in qtnf_event_handle_external_auth() 581 ether_addr_copy(auth.bssid, ev->bssid); in qtnf_event_handle_external_auth() 582 auth.action = ev->action; in qtnf_event_handle_external_auth() 585 vif->netdev->name, auth.bssid, auth.action, in qtnf_event_handle_external_auth() 586 auth.key_mgmt_suite); in qtnf_event_handle_external_auth() 588 ret = cfg80211_external_auth_request(vif->netdev, &auth, GFP_KERNEL); in qtnf_event_handle_external_auth()
|
| /drivers/nvme/target/ |
| A D | Makefile | 18 nvmet-$(CONFIG_NVME_TARGET_AUTH) += fabrics-cmd-auth.o auth.o
|
| /drivers/net/wireless/ti/wl1251/ |
| A D | acx.c | 118 struct acx_sleep_auth *auth; in wl1251_acx_sleep_auth() local 123 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1251_acx_sleep_auth() 124 if (!auth) in wl1251_acx_sleep_auth() 127 auth->sleep_auth = sleep_auth; in wl1251_acx_sleep_auth() 129 ret = wl1251_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth)); in wl1251_acx_sleep_auth() 131 kfree(auth); in wl1251_acx_sleep_auth()
|
| /drivers/crypto/bcm/ |
| A D | cipher.c | 415 0, ctx->auth.alg, ctx->auth.mode, in handle_skcipher_req() 704 hash_parms.alg = ctx->auth.alg; in handle_ahash_req() 705 hash_parms.mode = ctx->auth.mode; in handle_ahash_req() 905 switch (ctx->auth.alg) { in spu_hmac_outer_hash() 1309 hash_parms.alg = ctx->auth.alg; in handle_aead_req() 1310 hash_parms.mode = ctx->auth.mode; in handle_aead_req() 1452 ctx->auth.alg, ctx->auth.mode, in handle_aead_req() 2331 switch (ctx->auth.alg) { in ahash_hmac_setkey() 2436 ctx->auth.mode = HASH_MODE_HASH; in ahash_hmac_init() 2493 ctx->auth.mode = HASH_MODE_HMAC; in ahash_hmac_digest() [all …]
|
| /drivers/crypto/qce/ |
| A D | common.c | 156 __be32 auth[SHA256_DIGEST_SIZE / sizeof(__be32)] = {0}; in qce_setup_regs_ahash() local 190 memcpy(auth, rctx->digest, digestsize); in qce_setup_regs_ahash() 192 qce_cpu_to_be32p_array(auth, rctx->digest, digestsize); in qce_setup_regs_ahash() 195 qce_write_array(qce, REG_AUTH_IV0, (u32 *)auth, iv_words); in qce_setup_regs_ahash()
|
| /drivers/net/wireless/marvell/libertas/ |
| A D | cfg.c | 351 struct mrvl_ie_auth_type *auth = (void *) tlv; in lbs_add_auth_type_tlv() local 358 auth->header.type = cpu_to_le16(TLV_TYPE_AUTH_TYPE); in lbs_add_auth_type_tlv() 359 auth->header.len = cpu_to_le16(sizeof(*auth)-sizeof(auth->header)); in lbs_add_auth_type_tlv() 360 auth->auth = cpu_to_le16(lbs_auth_to_authtype(auth_type)); in lbs_add_auth_type_tlv() 361 return sizeof(*auth); in lbs_add_auth_type_tlv()
|
| /drivers/net/wireless/ti/wlcore/ |
| A D | acx.c | 55 struct acx_sleep_auth *auth; in wl1271_acx_sleep_auth() local 60 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1271_acx_sleep_auth() 61 if (!auth) { in wl1271_acx_sleep_auth() 66 auth->sleep_auth = sleep_auth; in wl1271_acx_sleep_auth() 68 ret = wl1271_cmd_configure(wl, ACX_SLEEP_AUTH, auth, sizeof(*auth)); in wl1271_acx_sleep_auth() 77 kfree(auth); in wl1271_acx_sleep_auth()
|
| /drivers/nvme/host/ |
| A D | Makefile | 20 nvme-core-$(CONFIG_NVME_HOST_AUTH) += auth.o
|