Home
last modified time | relevance | path

Searched refs:auth (Results 1 – 25 of 153) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/hdcp/
Dhdcp_log.h111 HDCP_DDC_READ_TRACE(hdcp, "BKSV", hdcp->auth.msg.hdcp1.bksv, \
112 sizeof(hdcp->auth.msg.hdcp1.bksv)); \
113 HDCP_DDC_READ_TRACE(hdcp, "BCAPS", &hdcp->auth.msg.hdcp1.bcaps, \
114 sizeof(hdcp->auth.msg.hdcp1.bcaps)); \
116 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, \
117 sizeof(hdcp->auth.msg.hdcp1.bstatus)); \
118 HDCP_DDC_WRITE_TRACE(hdcp, "AN", hdcp->auth.msg.hdcp1.an, \
119 sizeof(hdcp->auth.msg.hdcp1.an)); \
120 HDCP_DDC_WRITE_TRACE(hdcp, "AKSV", hdcp->auth.msg.hdcp1.aksv, \
121 sizeof(hdcp->auth.msg.hdcp1.aksv)); \
[all …]
Dhdcp_ddc.c249 hdcp->auth.msg.hdcp1.bksv, in mod_hdcp_read_bksv()
250 sizeof(hdcp->auth.msg.hdcp1.bksv)); in mod_hdcp_read_bksv()
256 &hdcp->auth.msg.hdcp1.bcaps, in mod_hdcp_read_bcaps()
257 sizeof(hdcp->auth.msg.hdcp1.bcaps)); in mod_hdcp_read_bcaps()
266 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, in mod_hdcp_read_bstatus()
270 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, in mod_hdcp_read_bstatus()
271 sizeof(hdcp->auth.msg.hdcp1.bstatus)); in mod_hdcp_read_bstatus()
278 (uint8_t *)&hdcp->auth.msg.hdcp1.r0p, in mod_hdcp_read_r0p()
279 sizeof(hdcp->auth.msg.hdcp1.r0p)); in mod_hdcp_read_r0p()
289 hdcp->auth.msg.hdcp1.ksvlist, in mod_hdcp_read_ksvlist()
[all …]
Dhdcp_psp.c37 in->session_handle = hdcp->auth.id; in hdcp2_message_init()
152 hdcp->auth.id = hdcp_cmd->out_msg.hdcp1_create_session.session_handle; in mod_hdcp_hdcp1_create_session()
157 hdcp->auth.msg.hdcp1.ainfo = hdcp_cmd->out_msg.hdcp1_create_session.ainfo_primary; in mod_hdcp_hdcp1_create_session()
158 memcpy(hdcp->auth.msg.hdcp1.aksv, hdcp_cmd->out_msg.hdcp1_create_session.aksv_primary, in mod_hdcp_hdcp1_create_session()
159 sizeof(hdcp->auth.msg.hdcp1.aksv)); in mod_hdcp_hdcp1_create_session()
160 memcpy(hdcp->auth.msg.hdcp1.an, hdcp_cmd->out_msg.hdcp1_create_session.an_primary, in mod_hdcp_hdcp1_create_session()
161 sizeof(hdcp->auth.msg.hdcp1.an)); in mod_hdcp_hdcp1_create_session()
180 hdcp_cmd->in_msg.hdcp1_destroy_session.session_handle = hdcp->auth.id; in mod_hdcp_hdcp1_destroy_session()
212 hdcp_cmd->in_msg.hdcp1_first_part_authentication.session_handle = hdcp->auth.id; in mod_hdcp_hdcp1_validate_rx()
214 memcpy(hdcp_cmd->in_msg.hdcp1_first_part_authentication.bksv_primary, hdcp->auth.msg.hdcp1.bksv, in mod_hdcp_hdcp1_validate_rx()
[all …]
Dhdcp2_execution.c35 is_ready = HDCP_2_2_DP_RXSTATUS_READY(hdcp->auth.msg.hdcp2.rxstatus_dp) ? 1 : 0; in check_receiver_id_list_ready()
37 is_ready = (HDCP_2_2_HDMI_RXSTATUS_READY(hdcp->auth.msg.hdcp2.rxstatus[1]) && in check_receiver_id_list_ready()
38 (HDCP_2_2_HDMI_RXSTATUS_MSG_SZ_HI(hdcp->auth.msg.hdcp2.rxstatus[1]) << 8 | in check_receiver_id_list_ready()
39 hdcp->auth.msg.hdcp2.rxstatus[0])) ? 1 : 0; in check_receiver_id_list_ready()
49 status = (hdcp->auth.msg.hdcp2.rxcaps_dp[0] == HDCP_2_2_RX_CAPS_VERSION_VAL) && in check_hdcp2_capable()
50 HDCP_2_2_DP_HDCP_CAPABLE(hdcp->auth.msg.hdcp2.rxcaps_dp[2]) ? in check_hdcp2_capable()
54 status = (hdcp->auth.msg.hdcp2.hdcp2version_hdmi & HDCP_2_2_HDMI_SUPPORT_MASK) ? in check_hdcp2_capable()
66 ret = HDCP_2_2_DP_RXSTATUS_REAUTH_REQ(hdcp->auth.msg.hdcp2.rxstatus_dp) ? in check_reauthentication_request()
70 ret = HDCP_2_2_HDMI_RXSTATUS_REAUTH_REQ(hdcp->auth.msg.hdcp2.rxstatus[1]) ? in check_reauthentication_request()
79 return HDCP_2_2_DP_RXSTATUS_LINK_FAILED(hdcp->auth.msg.hdcp2.rxstatus_dp) ? in check_link_integrity_failure_dp()
[all …]
Dhdcp1_execution.c34 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()
51 return (hdcp->auth.msg.hdcp1.bcaps & DRM_HDCP_DDC_BCAPS_KSV_FIFO_READY) ? in check_ksv_ready()
58 return (hdcp->auth.msg.hdcp1.bcaps & DP_BCAPS_HDCP_CAPABLE) ? in check_hdcp_capable_dp()
67 status = (hdcp->auth.msg.hdcp1.bstatus & in check_r0p_available_dp()
80 return (hdcp->auth.msg.hdcp1.bstatus & in check_link_integrity_dp()
89 return (hdcp->auth.msg.hdcp1.bstatus & DP_BSTATUS_REAUTH_REQ) ? in check_no_reauthentication_request_dp()
99 status = DRM_HDCP_MAX_CASCADE_EXCEEDED(hdcp->auth.msg.hdcp1.binfo_dp >> 8) in check_no_max_cascade()
103 status = DRM_HDCP_MAX_CASCADE_EXCEEDED(hdcp->auth.msg.hdcp1.bstatus >> 8) in check_no_max_cascade()
114 status = DRM_HDCP_MAX_DEVICE_EXCEEDED(hdcp->auth.msg.hdcp1.binfo_dp) ? in check_no_max_devs()
[all …]
/kernel/linux/common_modules/qos_auth/auth_ctl/
Dauth_ctrl.c61 static void change_to_super(struct auth_struct *auth) in change_to_super() argument
64 auth->rtg_auth_flag = AF_RTG_ALL; in change_to_super()
67 auth->qos_auth_flag = AF_QOS_ALL; in change_to_super()
69 auth->status = AUTH_STATUS_SYSTEM_SERVER; in change_to_super()
72 static void init_authority_record(struct auth_struct *auth) in init_authority_record() argument
79 auth->rtg_auth_flag = 0; in init_authority_record()
82 auth->qos_auth_flag = 0; in init_authority_record()
84 auth->status = AUTH_STATUS_DISABLED; in init_authority_record()
85 mutex_init(&auth->mutex); in init_authority_record()
86 refcount_set(&auth->usage, 1); in init_authority_record()
[all …]
Dauth_qos_debug.c42 const struct auth_struct *auth) in print_auth_info() argument
44 seq_printf_auth(file, "AUTH_STATUS :%d\n", auth->status); in print_auth_info()
46 seq_printf_auth(file, "RTG_FLAG :%04x\n", auth->rtg_auth_flag); in print_auth_info()
49 seq_printf_auth(file, "QOS_FLAG :%04x\n", auth->qos_auth_flag); in print_auth_info()
54 const struct auth_struct *auth) in print_qos_count() argument
59 seq_printf_auth(file, "QOS level %d thread nr :%d\n", i, auth->num[i]); in print_qos_count()
63 const struct auth_struct *auth) in print_qos_thread() argument
71 list_for_each_entry_safe(tmp, next, &auth->tasks[i], qos_list) { in print_qos_thread()
80 static inline void print_auth_struct(struct seq_file *file, struct auth_struct *auth) in print_auth_struct() argument
82 print_auth_info(file, auth); in print_auth_struct()
[all …]
Dqos_ctrl.c34 void remove_qos_tasks(struct auth_struct *auth) in remove_qos_tasks() argument
40 mutex_lock(&auth->mutex); in remove_qos_tasks()
42 list_for_each_entry_safe(tmp, next, &auth->tasks[i], qos_list) { in remove_qos_tasks()
51 mutex_unlock(&auth->mutex); in remove_qos_tasks()
114 void qos_switch(struct auth_struct *auth, int target_status) in qos_switch() argument
121 if (!auth) { in qos_switch()
126 lockdep_assert_held(&auth->mutex); in qos_switch()
128 if (auth->status == target_status) { in qos_switch()
134 list_for_each_entry(qts, &auth->tasks[i], qos_list) { in qos_switch()
205 struct auth_struct *auth; in qos_apply() local
[all …]
/kernel/linux/linux-5.10/include/linux/ceph/
Dauth.h28 int (*sign_message)(struct ceph_auth_handshake *auth,
30 int (*check_message_signature)(struct ceph_auth_handshake *auth,
63 struct ceph_auth_handshake *auth);
66 struct ceph_auth_handshake *auth);
81 int (*sign_message)(struct ceph_auth_handshake *auth,
83 int (*check_message_signature)(struct ceph_auth_handshake *auth,
120 struct ceph_auth_handshake *auth);
134 static inline int ceph_auth_sign_message(struct ceph_auth_handshake *auth, in ceph_auth_sign_message() argument
137 if (auth->sign_message) in ceph_auth_sign_message()
138 return auth->sign_message(auth, msg); in ceph_auth_sign_message()
[all …]
/kernel/linux/linux-5.10/crypto/
Dauthencesn.c26 struct crypto_ahash_spawn auth; member
32 struct crypto_ahash *auth; member
62 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_setkey() local
70 crypto_ahash_clear_flags(auth, CRYPTO_TFM_REQ_MASK); in crypto_authenc_esn_setkey()
71 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc_esn) & in crypto_authenc_esn_setkey()
73 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_esn_setkey()
92 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv_tail() local
94 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_genicv_tail()
125 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv() local
127 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_genicv()
[all …]
Dauthenc.c23 struct crypto_ahash_spawn auth; member
29 struct crypto_ahash *auth; member
88 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_setkey() local
96 crypto_ahash_clear_flags(auth, CRYPTO_TFM_REQ_MASK); in crypto_authenc_setkey()
97 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
99 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_setkey()
138 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_genicv() local
144 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_genicv()
145 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_genicv()
147 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv()
[all …]
/kernel/linux/linux-5.10/net/sunrpc/
Dauth.c227 struct rpc_auth *auth = ERR_PTR(-EINVAL); in rpcauth_create() local
235 auth = ops->create(args, clnt); in rpcauth_create()
238 if (IS_ERR(auth)) in rpcauth_create()
239 return auth; in rpcauth_create()
242 clnt->cl_auth = auth; in rpcauth_create()
245 return auth; in rpcauth_create()
250 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument
252 if (!refcount_dec_and_test(&auth->au_count)) in rpcauth_release()
254 auth->au_ops->destroy(auth); in rpcauth_release()
291 rpcauth_init_credcache(struct rpc_auth *auth) in rpcauth_init_credcache() argument
[all …]
Dauth_unix.c36 unx_destroy(struct rpc_auth *auth) in unx_destroy() argument
44 unx_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_lookup_cred() argument
48 rpcauth_init_cred(ret, acred, auth, &unix_credops); in unx_lookup_cred()
167 struct rpc_auth *auth = task->tk_rqstp->rq_cred->cr_auth; in unx_validate() local
189 auth->au_verfsize = XDR_QUADLEN(size) + 2; in unx_validate()
190 auth->au_rslack = XDR_QUADLEN(size) + 2; in unx_validate()
191 auth->au_ralign = XDR_QUADLEN(size) + 2; in unx_validate()
/kernel/linux/linux-5.10/drivers/target/iscsi/
Discsi_target_auth.c139 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()
210 struct iscsi_node_auth *auth, in chap_server_compute_hash() argument
284 compare_len = strlen(auth->userid) + 1; in chap_server_compute_hash()
285 if (strncmp(chap_n, auth->userid, compare_len) != 0) { in chap_server_compute_hash()
340 ret = crypto_shash_update(desc, (char *)&auth->password, in chap_server_compute_hash()
341 strlen(auth->password)); in chap_server_compute_hash()
369 if (!auth->authenticate_target) { in chap_server_compute_hash()
454 ret = crypto_shash_update(desc, auth->password_mutual, in chap_server_compute_hash()
[all …]
Discsi_target_configfs.c342 struct iscsi_node_auth *auth = &nacl->node_auth; \
346 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
354 struct iscsi_node_auth *auth = &nacl->node_auth; \
358 if (count >= sizeof(auth->name)) \
360 snprintf(auth->name, sizeof(auth->name), "%s", page); \
361 if (!strncmp("NULL", auth->name, 4)) \
362 auth->naf_flags &= ~flags; \
364 auth->naf_flags |= flags; \
366 if ((auth->naf_flags & NAF_USERID_IN_SET) && \
367 (auth->naf_flags & NAF_PASSWORD_IN_SET)) \
[all …]
/kernel/linux/linux-5.10/net/sctp/
Doutput.c67 packet->auth = NULL; in sctp_packet_reset()
220 struct sctp_chunk *auth; in sctp_packet_bundle_auth() local
235 if (!chunk->auth) in sctp_packet_bundle_auth()
238 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth()
239 if (!auth) in sctp_packet_bundle_auth()
242 auth->shkey = chunk->shkey; in sctp_packet_bundle_auth()
243 sctp_auth_shkey_hold(auth->shkey); in sctp_packet_bundle_auth()
245 retval = __sctp_packet_append_chunk(pkt, auth); in sctp_packet_bundle_auth()
248 sctp_chunk_free(auth); in sctp_packet_bundle_auth()
342 packet->auth = chunk; in __sctp_packet_append_chunk()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/tpm2/
Dtpm2_tests.py24 auth = ('A' * 15).encode()
26 blob = self.client.seal(self.root_key, data, auth, None)
27 result = self.client.unseal(self.root_key, blob, auth, None)
34 auth = ('A' * 15).encode()
45 blob = self.client.seal(self.root_key, data, auth, policy_dig)
53 result = self.client.unseal(self.root_key, blob, auth, handle)
62 auth = ('A' * 20).encode()
65 blob = self.client.seal(self.root_key, data, auth, None)
68 auth[:-1] + 'B'.encode(), None)
78 auth = ('A' * 17).encode()
[all …]
/kernel/linux/linux-5.10/net/ceph/
Dauth_none.c92 struct ceph_auth_handshake *auth) in ceph_auth_none_create_authorizer() argument
109 auth->authorizer = (struct ceph_authorizer *) au; in ceph_auth_none_create_authorizer()
110 auth->authorizer_buf = au->buf; in ceph_auth_none_create_authorizer()
111 auth->authorizer_buf_len = au->buf_len; in ceph_auth_none_create_authorizer()
112 auth->authorizer_reply_buf = au->reply_buf; in ceph_auth_none_create_authorizer()
113 auth->authorizer_reply_buf_len = sizeof (au->reply_buf); in ceph_auth_none_create_authorizer()
Dauth_x.c502 struct ceph_x_authenticate *auth = (void *)(head + 1); in ceph_x_build_request() local
503 void *p = auth + 1; in ceph_x_build_request()
516 get_random_bytes(&auth->client_challenge, sizeof(u64)); in ceph_x_build_request()
517 blob->client_challenge = auth->client_challenge; in ceph_x_build_request()
524 auth->struct_v = 1; in ceph_x_build_request()
525 auth->key = 0; in ceph_x_build_request()
527 auth->key ^= *(__le64 *)u; in ceph_x_build_request()
529 xi->server_challenge, le64_to_cpu(auth->client_challenge), in ceph_x_build_request()
530 le64_to_cpu(auth->key)); in ceph_x_build_request()
628 struct ceph_auth_handshake *auth) in ceph_x_create_authorizer() argument
[all …]
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dpkcs7_verify.c199 struct asymmetric_key_id *auth; in pkcs7_verify_sig_chain() local
252 auth = sig->auth_ids[0]; in pkcs7_verify_sig_chain()
253 if (auth) { in pkcs7_verify_sig_chain()
254 pr_debug("- want %*phN\n", auth->len, auth->data); in pkcs7_verify_sig_chain()
258 if (asymmetric_key_id_same(p->id, auth)) in pkcs7_verify_sig_chain()
262 auth = sig->auth_ids[1]; in pkcs7_verify_sig_chain()
263 pr_debug("- want %*phN\n", auth->len, auth->data); in pkcs7_verify_sig_chain()
269 if (asymmetric_key_id_same(p->skid, auth)) in pkcs7_verify_sig_chain()
/kernel/linux/linux-5.10/Documentation/networking/
Dmac80211-auth-assoc-deauth.txt35 mac80211->driver: TX auth frame
36 driver->mac80211: RX auth frame
38 alt WEP shared key auth
39 mac80211->driver: TX auth frame
40 driver->mac80211: RX auth frame
44 mac80211->userspace: RX auth frame
/kernel/linux/linux-5.10/drivers/crypto/
Datmel-authenc.h31 void atmel_sha_authenc_free(struct atmel_sha_authenc_ctx *auth);
32 int atmel_sha_authenc_setkey(struct atmel_sha_authenc_ctx *auth,
36 struct atmel_sha_authenc_ctx *auth,
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/
Dauth_gss.c248 struct gss_auth *auth; member
284 struct net *net = gss_msg->auth->net; in gss_release_msg()
292 gss_put_auth(gss_msg->auth); in gss_release_msg()
298 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid, const struct gss_auth *auth) in __gss_find_upcall() argument
304 if (pos->auth->service != auth->service) in __gss_find_upcall()
323 old = __gss_find_upcall(pipe, gss_msg->uid, gss_msg->auth); in gss_add_msg()
419 struct gss_api_mech *mech = gss_msg->auth->mech; in gss_encode_v1_msg()
497 gss_msg->auth->target_name, in gss_v1_upcall()
526 gss_msg->auth = gss_auth; in gss_alloc_msg()
757 p = gss_fill_context(p, end, ctx, gss_msg->auth->mech); in gss_pipe_downcall()
[all …]
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_algo.c179 .auth = {
199 .auth = {
219 .auth = {
239 .auth = {
258 .auth = {
277 .auth = {
297 .auth = {
316 .auth = {
336 .auth = {
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_auth.c66 struct drm_auth *auth = data; in drm_getmagic() local
76 auth->magic = file_priv->magic; in drm_getmagic()
79 DRM_DEBUG("%u\n", auth->magic); in drm_getmagic()
87 struct drm_auth *auth = data; in drm_authmagic() local
90 DRM_DEBUG("%u\n", auth->magic); in drm_authmagic()
93 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic()
96 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic()

1234567