Home
last modified time | relevance | path

Searched refs:auth (Results 1 - 25 of 323) sorted by relevance

12345678910>>...13

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/hdcp/
H A 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 in mod_hdcp_read_ksvlist()
[all...]
H A 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
[all...]
H A 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 in mod_hdcp_hdcp1_validate_rx()
[all...]
H A 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 in check_link_integrity_failure_dp()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/modules/hdcp/
H A 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 in mod_hdcp_read_ksvlist()
[all...]
H A Dhdcp_log.c57 HDCP_DDC_READ_TRACE(hdcp, "BKSV", hdcp->auth.msg.hdcp1.bksv, in mod_hdcp_log_ddc_trace()
58 sizeof(hdcp->auth.msg.hdcp1.bksv)); in mod_hdcp_log_ddc_trace()
59 HDCP_DDC_READ_TRACE(hdcp, "BCAPS", &hdcp->auth.msg.hdcp1.bcaps, in mod_hdcp_log_ddc_trace()
60 sizeof(hdcp->auth.msg.hdcp1.bcaps)); in mod_hdcp_log_ddc_trace()
62 (uint8_t *)&hdcp->auth.msg.hdcp1.bstatus, in mod_hdcp_log_ddc_trace()
63 sizeof(hdcp->auth.msg.hdcp1.bstatus)); in mod_hdcp_log_ddc_trace()
64 HDCP_DDC_WRITE_TRACE(hdcp, "AN", hdcp->auth.msg.hdcp1.an, in mod_hdcp_log_ddc_trace()
65 sizeof(hdcp->auth.msg.hdcp1.an)); in mod_hdcp_log_ddc_trace()
66 HDCP_DDC_WRITE_TRACE(hdcp, "AKSV", hdcp->auth.msg.hdcp1.aksv, in mod_hdcp_log_ddc_trace()
67 sizeof(hdcp->auth in mod_hdcp_log_ddc_trace()
[all...]
H A Dhdcp_psp.c37 in->session_handle = hdcp->auth.id; in hdcp2_message_init()
273 hdcp->auth.id = hdcp_cmd->out_msg.hdcp1_create_session.session_handle; in mod_hdcp_hdcp1_create_session()
278 hdcp->auth.msg.hdcp1.ainfo = hdcp_cmd->out_msg.hdcp1_create_session.ainfo_primary; in mod_hdcp_hdcp1_create_session()
279 memcpy(hdcp->auth.msg.hdcp1.aksv, hdcp_cmd->out_msg.hdcp1_create_session.aksv_primary, in mod_hdcp_hdcp1_create_session()
280 sizeof(hdcp->auth.msg.hdcp1.aksv)); in mod_hdcp_hdcp1_create_session()
281 memcpy(hdcp->auth.msg.hdcp1.an, hdcp_cmd->out_msg.hdcp1_create_session.an_primary, in mod_hdcp_hdcp1_create_session()
282 sizeof(hdcp->auth.msg.hdcp1.an)); in mod_hdcp_hdcp1_create_session()
301 hdcp_cmd->in_msg.hdcp1_destroy_session.session_handle = hdcp->auth.id; in mod_hdcp_hdcp1_destroy_session()
333 hdcp_cmd->in_msg.hdcp1_first_part_authentication.session_handle = hdcp->auth.id; in mod_hdcp_hdcp1_validate_rx()
335 memcpy(hdcp_cmd->in_msg.hdcp1_first_part_authentication.bksv_primary, hdcp->auth in mod_hdcp_hdcp1_validate_rx()
[all...]
H A 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 in check_link_integrity_failure_dp()
[all...]
/kernel/linux/common_modules/qos_auth/auth_ctl/
H A Dauth_ctrl.c57 * change auth's status to SYSTEM and enable all feature access
59 static void change_to_super(struct auth_struct *auth) in change_to_super() argument
62 auth->rtg_auth_flag = AF_RTG_ALL; in change_to_super()
65 auth->qos_auth_flag = AF_QOS_ALL; in change_to_super()
67 auth->status = AUTH_STATUS_SYSTEM_SERVER; in change_to_super()
70 static void init_authority_record(struct auth_struct *auth) in init_authority_record() argument
77 auth->rtg_auth_flag = 0; in init_authority_record()
80 auth->qos_auth_flag = 0; in init_authority_record()
82 auth->status = AUTH_STATUS_DISABLED; in init_authority_record()
83 mutex_init(&auth in init_authority_record()
93 get_auth_struct(struct auth_struct *auth) get_auth_struct() argument
98 __put_auth_struct(struct auth_struct *auth) __put_auth_struct() argument
111 put_auth_struct(struct auth_struct *auth) put_auth_struct() argument
155 struct auth_struct *auth = (struct auth_struct *)p; authority_remove_handler() local
323 struct auth_struct *auth; auth_switch() local
507 auth_flag(struct auth_struct *auth, unsigned int type) auth_flag() argument
527 struct auth_struct *auth; check_authorized() local
586 struct auth_struct *auth; get_authority() local
[all...]
H A Dqos_ctrl.c36 void remove_qos_tasks(struct auth_struct *auth) in remove_qos_tasks() argument
42 mutex_lock(&auth->mutex); in remove_qos_tasks()
44 list_for_each_entry_safe(tmp, next, &auth->tasks[i], qos_list) { in remove_qos_tasks()
53 mutex_unlock(&auth->mutex); in remove_qos_tasks()
114 * Lock auth before calling this function
116 void qos_switch(struct auth_struct *auth, int target_status) in qos_switch() argument
123 if (!auth) { in qos_switch()
124 pr_err("[QOS_CTRL] auth no exist, qos switch failed\n"); in qos_switch()
128 lockdep_assert_held(&auth->mutex); in qos_switch()
130 if (auth in qos_switch()
191 struct auth_struct *auth; can_change_qos() local
205 struct auth_struct *auth; qos_apply() local
298 struct auth_struct *auth; qos_leave() local
421 struct auth_struct *auth; sched_exit_qos_list() local
[all...]
H A Dauth_qos_debug.c42 const struct auth_struct *auth) in print_auth_info()
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()
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()
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()
41 print_auth_info(struct seq_file *file, const struct auth_struct *auth) print_auth_info() argument
53 print_qos_count(struct seq_file *file, const struct auth_struct *auth) print_qos_count() argument
62 print_qos_thread(struct seq_file *file, const struct auth_struct *auth) print_qos_thread() argument
95 struct auth_struct *auth = (struct auth_struct *)p; authority_printf_handler() local
[all...]
/kernel/linux/linux-5.10/crypto/
H A 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) in crypto_authenc_esn_genicv_tail()
125 struct crypto_ahash *auth = ctx->auth; crypto_authenc_esn_genicv() local
228 struct crypto_ahash *auth = ctx->auth; crypto_authenc_esn_decrypt_tail() local
277 struct crypto_ahash *auth = ctx->auth; crypto_authenc_esn_decrypt() local
327 struct crypto_ahash *auth; crypto_authenc_esn_init_tfm() local
396 struct hash_alg_common *auth; crypto_authenc_esn_create() local
[all...]
H A 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()
285 struct crypto_ahash *auth = ctx->auth; crypto_authenc_decrypt() local
312 struct crypto_ahash *auth; crypto_authenc_init_tfm() local
378 struct hash_alg_common *auth; crypto_authenc_create() local
[all...]
/kernel/linux/linux-6.6/crypto/
H A 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) in crypto_authenc_esn_genicv_tail()
124 struct crypto_ahash *auth = ctx->auth; crypto_authenc_esn_genicv() local
226 struct crypto_ahash *auth = ctx->auth; crypto_authenc_esn_decrypt_tail() local
274 struct crypto_ahash *auth = ctx->auth; crypto_authenc_esn_decrypt() local
324 struct crypto_ahash *auth; crypto_authenc_esn_init_tfm() local
393 struct hash_alg_common *auth; crypto_authenc_esn_create() local
[all...]
H A 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()
283 struct crypto_ahash *auth = ctx->auth; crypto_authenc_decrypt() local
310 struct crypto_ahash *auth; crypto_authenc_init_tfm() local
376 struct hash_alg_common *auth; crypto_authenc_create() local
[all...]
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/
H A Dplpks.c173 struct plpks_auth *auth; in construct_auth() local
178 // The auth structure must not cross a page boundary and must be in construct_auth()
180 auth = kzalloc(roundup_pow_of_two(struct_size(auth, password, maxpwsize)), GFP_KERNEL); in construct_auth()
181 if (!auth) in construct_auth()
184 auth->version = 1; in construct_auth()
185 auth->consumer = consumer; in construct_auth()
188 return auth; in construct_auth()
190 memcpy(auth->password, ospassword, ospasswordlength); in construct_auth()
192 auth in construct_auth()
391 plpks_confirm_object_flushed(struct label *label, struct plpks_auth *auth) plpks_confirm_object_flushed() argument
434 struct plpks_auth *auth; plpks_signed_update_var() local
487 struct plpks_auth *auth; plpks_write_var() local
526 struct plpks_auth *auth; plpks_remove_var() local
560 struct plpks_auth *auth; plpks_read_var() local
[all...]
/kernel/linux/linux-6.6/include/linux/ceph/
H A 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);
84 int (*sign_message)(struct ceph_auth_handshake *auth,
86 int (*check_message_signature)(struct ceph_auth_handshake *auth,
128 struct ceph_auth_handshake *auth,
144 static inline int ceph_auth_sign_message(struct ceph_auth_handshake *auth, in ceph_auth_sign_message() argument
147 if (auth->sign_message) in ceph_auth_sign_message()
148 return auth in ceph_auth_sign_message()
153 ceph_auth_check_message_signature(struct ceph_auth_handshake *auth, struct ceph_msg *msg) ceph_auth_check_message_signature() argument
[all...]
/kernel/linux/linux-5.10/include/linux/ceph/
H A 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 in ceph_auth_sign_message()
143 ceph_auth_check_message_signature(struct ceph_auth_handshake *auth, struct ceph_msg *msg) ceph_auth_check_message_signature() argument
[all...]
/kernel/linux/linux-5.10/net/sunrpc/
H A Dauth.c3 * linux/net/sunrpc/auth.c
151 request_module("rpc-auth-%u", flavor); in rpcauth_get_authops()
227 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 in rpcauth_release()
291 rpcauth_init_credcache(struct rpc_auth *auth) rpcauth_init_credcache() argument
410 rpcauth_destroy_credcache(struct rpc_auth *auth) rpcauth_destroy_credcache() argument
517 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, int flags, gfp_t gfp) rpcauth_lookup_credcache() argument
581 rpcauth_lookupcred(struct rpc_auth *auth, int flags) rpcauth_lookupcred() argument
595 rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, struct rpc_auth *auth, const struct rpc_credops *ops) rpcauth_init_cred() argument
612 struct rpc_auth *auth = task->tk_client->cl_auth; rpcauth_bind_root_cred() local
626 struct rpc_auth *auth = task->tk_client->cl_auth; rpcauth_bind_machine_cred() local
640 struct rpc_auth *auth = task->tk_client->cl_auth; rpcauth_bind_new_cred() local
651 struct rpc_auth *auth = task->tk_client->cl_auth; rpcauth_bindcred() local
[all...]
/kernel/linux/linux-6.6/net/sunrpc/
H A Dauth.c3 * linux/net/sunrpc/auth.c
148 request_module("rpc-auth-%u", flavor); in rpcauth_get_authops()
224 struct rpc_auth *auth = ERR_PTR(-EINVAL); in rpcauth_create() local
232 auth = ops->create(args, clnt); in rpcauth_create()
235 if (IS_ERR(auth)) in rpcauth_create()
236 return auth; in rpcauth_create()
239 clnt->cl_auth = auth; in rpcauth_create()
242 return auth; in rpcauth_create()
247 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument
249 if (!refcount_dec_and_test(&auth in rpcauth_release()
288 rpcauth_init_credcache(struct rpc_auth *auth) rpcauth_init_credcache() argument
407 rpcauth_destroy_credcache(struct rpc_auth *auth) rpcauth_destroy_credcache() argument
514 rpcauth_lookup_credcache(struct rpc_auth *auth, struct auth_cred * acred, int flags, gfp_t gfp) rpcauth_lookup_credcache() argument
578 rpcauth_lookupcred(struct rpc_auth *auth, int flags) rpcauth_lookupcred() argument
592 rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred, struct rpc_auth *auth, const struct rpc_credops *ops) rpcauth_init_cred() argument
609 struct rpc_auth *auth = task->tk_client->cl_auth; rpcauth_bind_root_cred() local
625 struct rpc_auth *auth = task->tk_client->cl_auth; rpcauth_bind_machine_cred() local
641 struct rpc_auth *auth = task->tk_client->cl_auth; rpcauth_bind_new_cred() local
652 struct rpc_auth *auth = task->tk_client->cl_auth; rpcauth_bindcred() local
[all...]
/kernel/linux/linux-5.10/net/sctp/
H A Doutput.c67 packet->auth = NULL; in sctp_packet_reset()
214 /* Try to bundle an auth chunk into the packet. */
220 struct sctp_chunk *auth; in sctp_packet_bundle_auth() local
226 /* See if this is an auth chunk we are bundling or if in sctp_packet_bundle_auth()
227 * auth is already bundled. in sctp_packet_bundle_auth()
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 in sctp_packet_bundle_auth()
410 struct sctp_auth_chunk *auth = NULL; sctp_packet_pack() local
[all...]
/kernel/linux/linux-5.10/net/ceph/
H A Dauth_none.c11 #include <linux/ceph/auth.h>
69 * the generic auth code decode the global_id, and we carry no actual
92 struct ceph_auth_handshake *auth) in ceph_auth_none_create_authorizer()
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()
90 ceph_auth_none_create_authorizer( struct ceph_auth_client *ac, int peer_type, struct ceph_auth_handshake *auth) ceph_auth_none_create_authorizer() argument
/kernel/linux/linux-6.6/net/ceph/
H A Dauth_none.c11 #include <linux/ceph/auth.h>
69 * the generic auth code decode the global_id, and we carry no actual
95 struct ceph_auth_handshake *auth) in ceph_auth_none_create_authorizer()
112 auth->authorizer = (struct ceph_authorizer *) au; in ceph_auth_none_create_authorizer()
113 auth->authorizer_buf = au->buf; in ceph_auth_none_create_authorizer()
114 auth->authorizer_buf_len = au->buf_len; in ceph_auth_none_create_authorizer()
115 auth->authorizer_reply_buf = NULL; in ceph_auth_none_create_authorizer()
116 auth->authorizer_reply_buf_len = 0; in ceph_auth_none_create_authorizer()
93 ceph_auth_none_create_authorizer( struct ceph_auth_client *ac, int peer_type, struct ceph_auth_handshake *auth) ceph_auth_none_create_authorizer() argument
/kernel/linux/linux-5.10/drivers/target/iscsi/
H A Discsi_target_auth.c139 struct iscsi_node_auth *auth, in chap_server_open()
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()
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 in chap_server_compute_hash()
137 chap_server_open( struct iscsi_conn *conn, struct iscsi_node_auth *auth, const char *a_str, char *aic_str, unsigned int *aic_len) chap_server_open() argument
208 chap_server_compute_hash( struct iscsi_conn *conn, struct iscsi_node_auth *auth, char *nr_in_ptr, char *nr_out_ptr, unsigned int *nr_out_len) chap_server_compute_hash() argument
499 chap_main_loop( struct iscsi_conn *conn, struct iscsi_node_auth *auth, char *in_text, char *out_text, int *in_len, int *out_len) chap_main_loop() argument
[all...]
/kernel/linux/linux-6.6/drivers/target/iscsi/
H A Discsi_target_auth.c139 struct iscsi_node_auth *auth, in chap_server_open()
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()
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()
383 ret = crypto_shash_update(desc, (char *)&auth->password, in chap_server_compute_hash()
384 strlen(auth->password)); in chap_server_compute_hash()
412 if (!auth->authenticate_target) { in chap_server_compute_hash()
526 ret = crypto_shash_update(desc, auth in chap_server_compute_hash()
137 chap_server_open( struct iscsit_conn *conn, struct iscsi_node_auth *auth, const char *a_str, char *aic_str, unsigned int *aic_len) chap_server_open() argument
240 chap_server_compute_hash( struct iscsit_conn *conn, struct iscsi_node_auth *auth, char *nr_in_ptr, char *nr_out_ptr, unsigned int *nr_out_len) chap_server_compute_hash() argument
571 chap_main_loop( struct iscsit_conn *conn, struct iscsi_node_auth *auth, char *in_text, char *out_text, int *in_len, int *out_len) chap_main_loop() argument
[all...]

Completed in 15 milliseconds

12345678910>>...13