Home
last modified time | relevance | path

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

12345

/Linux-v4.19/crypto/
Dauthencesn.c31 struct crypto_ahash_spawn auth; member
37 struct crypto_ahash *auth; member
67 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_setkey() local
75 crypto_ahash_clear_flags(auth, CRYPTO_TFM_REQ_MASK); in crypto_authenc_esn_setkey()
76 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc_esn) & in crypto_authenc_esn_setkey()
78 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_esn_setkey()
79 crypto_aead_set_flags(authenc_esn, crypto_ahash_get_flags(auth) & in crypto_authenc_esn_setkey()
107 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv_tail() local
109 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_genicv_tail()
140 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv() local
[all …]
Dauthenc.c28 struct crypto_ahash_spawn auth; member
34 struct crypto_ahash *auth; member
85 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_setkey() local
93 crypto_ahash_clear_flags(auth, CRYPTO_TFM_REQ_MASK); in crypto_authenc_setkey()
94 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
96 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_setkey()
97 crypto_aead_set_flags(authenc, crypto_ahash_get_flags(auth) & in crypto_authenc_setkey()
145 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_genicv() local
151 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_genicv()
152 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_genicv()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/drivers/target/iscsi/
Discsi_target_auth.c94 struct iscsi_node_auth *auth, in chap_server_open() argument
102 if (!(auth->naf_flags & NAF_USERID_SET) || in chap_server_open()
103 !(auth->naf_flags & NAF_PASSWORD_SET)) { in chap_server_open()
159 struct iscsi_node_auth *auth, in chap_server_compute_md5() argument
212 compare_len = strlen(auth->userid) + 1; in chap_server_compute_md5()
213 if (strncmp(chap_n, auth->userid, compare_len) != 0) { in chap_server_compute_md5()
269 ret = crypto_shash_update(desc, (char *)&auth->password, in chap_server_compute_md5()
270 strlen(auth->password)); in chap_server_compute_md5()
296 if (!auth->authenticate_target) { in chap_server_compute_md5()
379 ret = crypto_shash_update(desc, auth->password_mutual, in chap_server_compute_md5()
[all …]
Discsi_target_configfs.c350 struct iscsi_node_auth *auth = &nacl->node_auth; \
354 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
362 struct iscsi_node_auth *auth = &nacl->node_auth; \
366 if (count >= sizeof(auth->name)) \
368 snprintf(auth->name, sizeof(auth->name), "%s", page); \
369 if (!strncmp("NULL", auth->name, 4)) \
370 auth->naf_flags &= ~flags; \
372 auth->naf_flags |= flags; \
374 if ((auth->naf_flags & NAF_USERID_IN_SET) && \
375 (auth->naf_flags & NAF_PASSWORD_IN_SET)) \
[all …]
/Linux-v4.19/net/sunrpc/
Dauth.c258 struct rpc_auth *auth; in rpcauth_create() local
262 auth = ERR_PTR(-EINVAL); in rpcauth_create()
275 auth = ops->create(args, clnt); in rpcauth_create()
277 if (IS_ERR(auth)) in rpcauth_create()
278 return auth; in rpcauth_create()
281 clnt->cl_auth = auth; in rpcauth_create()
284 return auth; in rpcauth_create()
289 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument
291 if (!atomic_dec_and_test(&auth->au_count)) in rpcauth_release()
293 auth->au_ops->destroy(auth); in rpcauth_release()
[all …]
Dauth_generic.c75 struct rpc_auth *auth = task->tk_client->cl_auth; in generic_bind_cred() local
78 return auth->au_ops->lookup_cred(auth, acred, lookupflags); in generic_bind_cred()
93 generic_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in generic_lookup_cred() argument
99 generic_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp) in generic_create_cred() argument
226 generic_key_timeout(struct rpc_auth *auth, struct rpc_cred *cred) in generic_key_timeout() argument
235 if (auth->au_flags & RPCAUTH_AUTH_NO_CRKEY_TIMEOUT) in generic_key_timeout()
243 tcred = auth->au_ops->lookup_cred(auth, acred, 0); in generic_key_timeout()
Dauth_unix.c42 unx_destroy(struct rpc_auth *auth) in unx_destroy() argument
44 dprintk("RPC: destroying UNIX authenticator %p\n", auth); in unx_destroy()
45 rpcauth_clear_credcache(auth->au_credcache); in unx_destroy()
60 unx_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_lookup_cred() argument
62 return rpcauth_lookup_credcache(auth, acred, flags, GFP_NOFS); in unx_lookup_cred()
66 unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp) in unx_create_cred() argument
79 rpcauth_init_cred(&cred->uc_base, acred, auth, &unix_credops); in unx_create_cred()
Dauth_null.c29 nul_destroy(struct rpc_auth *auth) in nul_destroy() argument
37 nul_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in nul_lookup_cred() argument
/Linux-v4.19/net/sctp/
Doutput.c82 packet->auth = NULL; in sctp_packet_reset()
232 struct sctp_chunk *auth; in sctp_packet_bundle_auth() local
247 if (!chunk->auth) in sctp_packet_bundle_auth()
250 auth = sctp_make_auth(asoc, chunk->shkey->key_id); in sctp_packet_bundle_auth()
251 if (!auth) in sctp_packet_bundle_auth()
254 auth->shkey = chunk->shkey; in sctp_packet_bundle_auth()
255 sctp_auth_shkey_hold(auth->shkey); in sctp_packet_bundle_auth()
257 retval = __sctp_packet_append_chunk(pkt, auth); in sctp_packet_bundle_auth()
260 sctp_chunk_free(auth); in sctp_packet_bundle_auth()
351 packet->auth = chunk; in __sctp_packet_append_chunk()
[all …]
Dauth.c431 chunk->auth = 1; in sctp_auth_asoc_init_active_key()
728 struct sk_buff *skb, struct sctp_auth_chunk *auth, in sctp_auth_calculate_hmac() argument
742 key_id = ntohs(auth->auth_hdr.shkey_id); in sctp_auth_calculate_hmac()
743 hmac_id = ntohs(auth->auth_hdr.hmac_id); in sctp_auth_calculate_hmac()
761 digest = auth->auth_hdr.hmac; in sctp_auth_calculate_hmac()
770 crypto_shash_digest(desc, (u8 *)auth, in sctp_auth_calculate_hmac()
771 end - (unsigned char *)auth, digest); in sctp_auth_calculate_hmac()
/Linux-v4.19/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 …]
Dmon_client.c127 ceph_auth_reset(monc->auth); in __close_session()
195 ret = ceph_auth_build_hello(monc->auth, in __open_session()
963 int is_auth = ceph_auth_is_authenticated(monc->auth); in delayed_work()
1034 monc->auth = ceph_auth_init(cl->options->name, in ceph_monc_init()
1036 if (IS_ERR(monc->auth)) { in ceph_monc_init()
1037 err = PTR_ERR(monc->auth); in ceph_monc_init()
1040 monc->auth->want_keys = in ceph_monc_init()
1089 ceph_auth_destroy(monc->auth); in ceph_monc_init()
1115 ceph_auth_destroy(monc->auth); in ceph_monc_stop()
1146 was_auth = ceph_auth_is_authenticated(monc->auth); in handle_auth_reply()
[all …]
/Linux-v4.19/crypto/asymmetric_keys/
Dpkcs7_verify.c177 struct asymmetric_key_id *auth; in pkcs7_verify_sig_chain() local
230 auth = sig->auth_ids[0]; in pkcs7_verify_sig_chain()
231 if (auth) { in pkcs7_verify_sig_chain()
232 pr_debug("- want %*phN\n", auth->len, auth->data); in pkcs7_verify_sig_chain()
236 if (asymmetric_key_id_same(p->id, auth)) in pkcs7_verify_sig_chain()
240 auth = sig->auth_ids[1]; in pkcs7_verify_sig_chain()
241 pr_debug("- want %*phN\n", auth->len, auth->data); in pkcs7_verify_sig_chain()
247 if (asymmetric_key_id_same(p->skid, auth)) in pkcs7_verify_sig_chain()
/Linux-v4.19/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
/Linux-v4.19/drivers/crypto/
Datmel-authenc.h42 void atmel_sha_authenc_free(struct atmel_sha_authenc_ctx *auth);
43 int atmel_sha_authenc_setkey(struct atmel_sha_authenc_ctx *auth,
48 struct atmel_sha_authenc_ctx *auth,
/Linux-v4.19/net/xfrm/
Dxfrm_algo.c183 .auth = {
203 .auth = {
223 .auth = {
243 .auth = {
262 .auth = {
281 .auth = {
301 .auth = {
320 .auth = {
340 .auth = {
/Linux-v4.19/drivers/gpu/drm/
Ddrm_auth.c60 struct drm_auth *auth = data; in drm_getmagic() local
70 auth->magic = file_priv->magic; in drm_getmagic()
73 DRM_DEBUG("%u\n", auth->magic); in drm_getmagic()
81 struct drm_auth *auth = data; in drm_authmagic() local
84 DRM_DEBUG("%u\n", auth->magic); in drm_authmagic()
87 file = idr_find(&file_priv->master->magic_map, auth->magic); in drm_authmagic()
90 idr_replace(&file_priv->master->magic_map, NULL, auth->magic); in drm_authmagic()
/Linux-v4.19/net/sunrpc/auth_gss/
Dauth_gss.c299 struct gss_auth *auth; member
335 struct net *net = gss_msg->auth->net; in gss_release_msg()
343 gss_put_auth(gss_msg->auth); in gss_release_msg()
348 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid, const struct gss_auth *auth) in __gss_find_upcall() argument
354 if (auth && pos->auth->service != auth->service) in __gss_find_upcall()
375 old = __gss_find_upcall(pipe, gss_msg->uid, gss_msg->auth); in gss_add_msg()
454 struct gss_api_mech *mech = gss_msg->auth->mech; in gss_encode_v1_msg()
542 gss_msg->auth = gss_auth; in gss_alloc_msg()
762 p = gss_fill_context(p, end, ctx, gss_msg->auth->mech); in gss_pipe_downcall()
1024 struct rpc_auth * auth; in gss_create_new() local
[all …]
/Linux-v4.19/drivers/staging/rtl8192e/
Drtllib_crypt_ccmp.c111 u8 *pn, size_t dlen, u8 *b0, u8 *auth, in ccmp_init_blocks() argument
174 rtllib_ccmp_aes_encrypt(tfm, b0, auth); in ccmp_init_blocks()
175 xor_block(auth, aad, AES_BLOCK_LEN); in ccmp_init_blocks()
176 rtllib_ccmp_aes_encrypt(tfm, auth, auth); in ccmp_init_blocks()
177 xor_block(auth, &aad[AES_BLOCK_LEN], AES_BLOCK_LEN); in ccmp_init_blocks()
178 rtllib_ccmp_aes_encrypt(tfm, auth, auth); in ccmp_init_blocks()
/Linux-v4.19/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt_ccmp.c112 u8 *pn, size_t dlen, u8 *b0, u8 *auth, in ccmp_init_blocks() argument
178 ieee80211_ccmp_aes_encrypt(tfm, b0, auth); in ccmp_init_blocks()
179 xor_block(auth, aad, AES_BLOCK_LEN); in ccmp_init_blocks()
180 ieee80211_ccmp_aes_encrypt(tfm, auth, auth); in ccmp_init_blocks()
181 xor_block(auth, &aad[AES_BLOCK_LEN], AES_BLOCK_LEN); in ccmp_init_blocks()
182 ieee80211_ccmp_aes_encrypt(tfm, auth, auth); in ccmp_init_blocks()
/Linux-v4.19/net/wireless/
Dlib80211_crypt_ccmp.c113 u8 * pn, size_t dlen, u8 * b0, u8 * auth, u8 * s0) in ccmp_init_blocks() argument
171 lib80211_ccmp_aes_encrypt(tfm, b0, auth); in ccmp_init_blocks()
172 xor_block(auth, aad, AES_BLOCK_LEN); in ccmp_init_blocks()
173 lib80211_ccmp_aes_encrypt(tfm, auth, auth); in ccmp_init_blocks()
174 xor_block(auth, &aad[AES_BLOCK_LEN], AES_BLOCK_LEN); in ccmp_init_blocks()
175 lib80211_ccmp_aes_encrypt(tfm, auth, auth); in ccmp_init_blocks()
/Linux-v4.19/net/bluetooth/
Dsmp.c866 static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth, in tk_request() argument
879 BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io); in tk_request()
887 if (!(auth & SMP_AUTH_MITM)) in tk_request()
1021 u8 stk[16], auth; in smp_random() local
1031 auth = 1; in smp_random()
1033 auth = 0; in smp_random()
1040 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1140 u8 key_type, auth; in sc_add_ltk() local
1148 auth = 1; in sc_add_ltk()
1150 auth = 0; in sc_add_ltk()
[all …]
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_tunnel.sh558 auth=0x$(printf '1%.0s' {1..40})
567 auth-trunc 'hmac(sha1)' $auth 96 enc 'cbc(aes)' $enc
576 auth-trunc 'hmac(sha1)' $auth 96 enc 'cbc(aes)' $enc
592 auth-trunc 'hmac(sha1)' $auth 96 enc 'cbc(aes)' $enc
599 auth-trunc 'hmac(sha1)' $auth 96 enc 'cbc(aes)' $enc

12345