Home
last modified time | relevance | path

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

12

/net/sunrpc/
Dauth.c257 struct rpc_auth *auth; in rpcauth_create() local
261 auth = ERR_PTR(-EINVAL); in rpcauth_create()
274 auth = ops->create(args, clnt); in rpcauth_create()
276 if (IS_ERR(auth)) in rpcauth_create()
277 return auth; in rpcauth_create()
280 clnt->cl_auth = auth; in rpcauth_create()
283 return auth; in rpcauth_create()
288 rpcauth_release(struct rpc_auth *auth) in rpcauth_release() argument
290 if (!atomic_dec_and_test(&auth->au_count)) in rpcauth_release()
292 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.c43 unx_destroy(struct rpc_auth *auth) in unx_destroy() argument
45 dprintk("RPC: destroying UNIX authenticator %p\n", auth); in unx_destroy()
46 rpcauth_clear_credcache(auth->au_credcache); in unx_destroy()
61 unx_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in unx_lookup_cred() argument
63 return rpcauth_lookup_credcache(auth, acred, flags, GFP_NOFS); in unx_lookup_cred()
67 unx_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags, gfp_t gfp) in unx_create_cred() argument
80 rpcauth_init_cred(&cred->uc_base, acred, auth, &unix_credops); in unx_create_cred()
Dauth_null.c28 nul_destroy(struct rpc_auth *auth) in nul_destroy() argument
36 nul_lookup_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) in nul_lookup_cred() argument
DMakefile11 auth.o auth_null.o auth_unix.o auth_generic.o \
/net/sctp/
Doutput.c78 packet->auth = NULL; in sctp_packet_reset()
219 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); in sctp_packet_bundle_auth()
239 if (!auth) in sctp_packet_bundle_auth()
242 retval = __sctp_packet_append_chunk(pkt, auth); in sctp_packet_bundle_auth()
245 sctp_chunk_free(auth); in sctp_packet_bundle_auth()
335 packet->auth = chunk; in __sctp_packet_append_chunk()
423 unsigned char *auth = NULL; /* pointer to auth in skb data */ in sctp_packet_transmit() local
514 if (chunk == packet->auth) in sctp_packet_transmit()
[all …]
Dauth.c419 chunk->auth = 1; in sctp_auth_asoc_init_active_key()
706 struct sctp_auth_chunk *auth, in sctp_auth_calculate_hmac() argument
720 key_id = ntohs(auth->auth_hdr.shkey_id); in sctp_auth_calculate_hmac()
721 hmac_id = ntohs(auth->auth_hdr.hmac_id); in sctp_auth_calculate_hmac()
744 digest = auth->auth_hdr.hmac; in sctp_auth_calculate_hmac()
753 crypto_shash_digest(desc, (u8 *)auth, in sctp_auth_calculate_hmac()
754 end - (unsigned char *)auth, digest); in sctp_auth_calculate_hmac()
DMakefile14 output.o input.o debug.o ssnmap.o auth.o \
Dendpointola.c415 chunk->auth = 1; in sctp_endpoint_bh_rcv()
435 if (sctp_auth_recv_cid(subtype.chunk, asoc) && !chunk->auth) in sctp_endpoint_bh_rcv()
Dinqueue.c202 chunk->auth = 0; in sctp_inq_pop()
Dsm_statefuns.c761 struct sctp_chunk auth; in sctp_sf_do_5_1D_ce() local
771 auth.skb = chunk->auth_chunk; in sctp_sf_do_5_1D_ce()
772 auth.asoc = chunk->asoc; in sctp_sf_do_5_1D_ce()
773 auth.sctp_hdr = chunk->sctp_hdr; in sctp_sf_do_5_1D_ce()
774 auth.chunk_hdr = (sctp_chunkhdr_t *)skb_push(chunk->auth_chunk, in sctp_sf_do_5_1D_ce()
777 auth.transport = chunk->transport; in sctp_sf_do_5_1D_ce()
779 ret = sctp_sf_authenticate(net, ep, new_asoc, type, &auth); in sctp_sf_do_5_1D_ce()
3607 if (!net->sctp.addip_noauth && !chunk->auth) in sctp_sf_do_asconf()
3724 if (!net->sctp.addip_noauth && !asconf_ack->auth) in sctp_sf_do_asconf_ack()
4051 chunk->auth = 1; in sctp_sf_authenticate()
/net/ceph/
Dauth_x.c446 struct ceph_x_authenticate *auth = (void *)(head + 1); in ceph_x_build_request() local
447 void *p = auth + 1; in ceph_x_build_request()
460 get_random_bytes(&auth->client_challenge, sizeof(u64)); in ceph_x_build_request()
461 blob->client_challenge = auth->client_challenge; in ceph_x_build_request()
468 auth->struct_v = 1; in ceph_x_build_request()
469 auth->key = 0; in ceph_x_build_request()
471 auth->key ^= *(__le64 *)u; in ceph_x_build_request()
473 xi->server_challenge, le64_to_cpu(auth->client_challenge), in ceph_x_build_request()
474 le64_to_cpu(auth->key)); in ceph_x_build_request()
572 struct ceph_auth_handshake *auth) in ceph_x_create_authorizer() argument
[all …]
Dauth_none.c91 struct ceph_auth_handshake *auth) in ceph_auth_none_create_authorizer() argument
108 auth->authorizer = (struct ceph_authorizer *) au; in ceph_auth_none_create_authorizer()
109 auth->authorizer_buf = au->buf; in ceph_auth_none_create_authorizer()
110 auth->authorizer_buf_len = au->buf_len; in ceph_auth_none_create_authorizer()
111 auth->authorizer_reply_buf = au->reply_buf; in ceph_auth_none_create_authorizer()
112 auth->authorizer_reply_buf_len = sizeof (au->reply_buf); in ceph_auth_none_create_authorizer()
Dmon_client.c127 ceph_auth_reset(monc->auth); in __close_session()
195 ret = ceph_auth_build_hello(monc->auth, in __open_session()
947 int is_auth = ceph_auth_is_authenticated(monc->auth); in delayed_work()
1017 monc->auth = ceph_auth_init(cl->options->name, in ceph_monc_init()
1019 if (IS_ERR(monc->auth)) { in ceph_monc_init()
1020 err = PTR_ERR(monc->auth); in ceph_monc_init()
1023 monc->auth->want_keys = in ceph_monc_init()
1072 ceph_auth_destroy(monc->auth); in ceph_monc_init()
1098 ceph_auth_destroy(monc->auth); in ceph_monc_stop()
1130 was_auth = ceph_auth_is_authenticated(monc->auth); in handle_auth_reply()
[all …]
Dmessenger.c1394 struct ceph_auth_handshake *auth; in get_connect_authorizer() local
1404 auth = con->ops->get_authorizer(con, auth_proto, con->auth_retry); in get_connect_authorizer()
1407 if (IS_ERR(auth)) in get_connect_authorizer()
1408 return auth; in get_connect_authorizer()
1412 con->auth_reply_buf = auth->authorizer_reply_buf; in get_connect_authorizer()
1413 con->auth_reply_buf_len = auth->authorizer_reply_buf_len; in get_connect_authorizer()
1414 return auth; in get_connect_authorizer()
1435 struct ceph_auth_handshake *auth; in prepare_write_connect() local
1463 auth = get_connect_authorizer(con, &auth_proto); in prepare_write_connect()
1464 if (IS_ERR(auth)) in prepare_write_connect()
[all …]
DMakefile11 auth.o auth_none.o \
Dauth.c285 struct ceph_auth_handshake *auth) in ceph_auth_create_authorizer() argument
291 ret = ac->ops->create_authorizer(ac, peer_type, auth); in ceph_auth_create_authorizer()
Dosd_client.c4458 struct ceph_auth_client *ac = osdc->client->monc.auth; in get_authorizer()
4459 struct ceph_auth_handshake *auth = &o->o_auth; in get_authorizer() local
4461 if (force_new && auth->authorizer) { in get_authorizer()
4462 ceph_auth_destroy_authorizer(auth->authorizer); in get_authorizer()
4463 auth->authorizer = NULL; in get_authorizer()
4465 if (!auth->authorizer) { in get_authorizer()
4467 auth); in get_authorizer()
4472 auth); in get_authorizer()
4478 return auth; in get_authorizer()
4486 struct ceph_auth_client *ac = osdc->client->monc.auth; in verify_authorizer_reply()
[all …]
/net/sunrpc/auth_gss/
Dauth_gss.c294 struct gss_auth *auth; member
330 struct net *net = gss_msg->auth->net; in gss_release_msg()
338 gss_put_auth(gss_msg->auth); in gss_release_msg()
343 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid, const struct gss_auth *auth) in __gss_find_upcall() argument
349 if (auth && pos->auth->service != auth->service) in __gss_find_upcall()
370 old = __gss_find_upcall(pipe, gss_msg->uid, gss_msg->auth); in gss_add_msg()
449 struct gss_api_mech *mech = gss_msg->auth->mech; in gss_encode_v1_msg()
511 gss_msg->auth = gss_auth; in gss_alloc_msg()
731 p = gss_fill_context(p, end, ctx, gss_msg->auth->mech); in gss_pipe_downcall()
993 struct rpc_auth * auth; in gss_create_new() local
[all …]
/net/xfrm/
Dxfrm_algo.c183 .auth = {
203 .auth = {
223 .auth = {
243 .auth = {
262 .auth = {
281 .auth = {
301 .auth = {
320 .auth = {
340 .auth = {
Dxfrm_user.c336 p->alg_trunc_len = algo->uinfo.auth.icv_truncbits; in attach_auth()
357 if (ualg->alg_trunc_len > algo->uinfo.auth.icv_fullbits) in attach_auth_trunc()
367 p->alg_trunc_len = algo->uinfo.auth.icv_truncbits; in attach_auth_trunc()
780 static int copy_to_user_auth(struct xfrm_algo_auth *auth, struct sk_buff *skb) in copy_to_user_auth() argument
786 sizeof(*algo) + (auth->alg_key_len + 7) / 8); in copy_to_user_auth()
791 strncpy(algo->alg_name, auth->alg_name, sizeof(algo->alg_name)); in copy_to_user_auth()
792 memcpy(algo->alg_key, auth->alg_key, (auth->alg_key_len + 7) / 8); in copy_to_user_auth()
793 algo->alg_key_len = auth->alg_key_len; in copy_to_user_auth()
/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()
/net/bluetooth/
Dsmp.c842 static int tk_request(struct l2cap_conn *conn, u8 remote_oob, u8 auth, in tk_request() argument
855 BT_DBG("tk_request: auth:%d lcl:%d rem:%d", auth, local_io, remote_io); in tk_request()
863 if (!(auth & SMP_AUTH_MITM)) in tk_request()
996 u8 stk[16], auth; in smp_random() local
1006 auth = 1; in smp_random()
1008 auth = 0; in smp_random()
1015 SMP_STK, auth, stk, smp->enc_key_size, ediv, rand); in smp_random()
1115 u8 key_type, auth; in sc_add_ltk() local
1123 auth = 1; in sc_add_ltk()
1125 auth = 0; in sc_add_ltk()
[all …]
/net/ipv4/
Dah4.c505 if (aalg_desc->uinfo.auth.icv_fullbits/8 != in ah_init_state()
510 aalg_desc->uinfo.auth.icv_fullbits / 8); in ah_init_state()
514 ahp->icv_full_len = aalg_desc->uinfo.auth.icv_fullbits/8; in ah_init_state()
/net/ipv6/
Dah6.c712 if (aalg_desc->uinfo.auth.icv_fullbits/8 != in ah6_init_state()
716 aalg_desc->uinfo.auth.icv_fullbits/8); in ah6_init_state()
720 ahp->icv_full_len = aalg_desc->uinfo.auth.icv_fullbits/8; in ah6_init_state()

12