Home
last modified time | relevance | path

Searched refs:token (Results 1 – 12 of 12) sorted by relevance

/net/rxrpc/
Dar-key.c87 struct rxrpc_key_token *token, **pptoken; in rxrpc_instantiate_xdr_rxkad() local
105 plen = sizeof(*token) + sizeof(*token->kad) + tktlen; in rxrpc_instantiate_xdr_rxkad()
110 plen -= sizeof(*token); in rxrpc_instantiate_xdr_rxkad()
111 token = kzalloc(sizeof(*token), GFP_KERNEL); in rxrpc_instantiate_xdr_rxkad()
112 if (!token) in rxrpc_instantiate_xdr_rxkad()
115 token->kad = kzalloc(plen, GFP_KERNEL); in rxrpc_instantiate_xdr_rxkad()
116 if (!token->kad) { in rxrpc_instantiate_xdr_rxkad()
117 kfree(token); in rxrpc_instantiate_xdr_rxkad()
121 token->security_index = RXRPC_SECURITY_RXKAD; in rxrpc_instantiate_xdr_rxkad()
122 token->kad->ticket_len = tktlen; in rxrpc_instantiate_xdr_rxkad()
[all …]
Drxkad.c65 struct rxrpc_key_token *token; in rxkad_init_connection_security() local
70 token = conn->key->payload.data; in rxkad_init_connection_security()
71 conn->security_ix = token->security_index; in rxkad_init_connection_security()
80 if (crypto_blkcipher_setkey(ci, token->kad->session_key, in rxkad_init_connection_security()
81 sizeof(token->kad->session_key)) < 0) in rxkad_init_connection_security()
115 struct rxrpc_key_token *token; in rxkad_prime_packet_security() local
128 token = conn->key->payload.data; in rxkad_prime_packet_security()
129 memcpy(&iv, token->kad->session_key, sizeof(iv)); in rxkad_prime_packet_security()
202 const struct rxrpc_key_token *token; in rxkad_secure_packet_encrypt() local
224 token = call->conn->key->payload.data; in rxkad_secure_packet_encrypt()
[all …]
Dar-security.c126 struct rxrpc_key_token *token; in rxrpc_init_client_conn_security() local
142 token = key->payload.data; in rxrpc_init_client_conn_security()
144 sec = rxrpc_security_lookup(token->security_index); in rxrpc_init_client_conn_security()
/net/sunrpc/auth_gss/
Dgss_krb5_seal.c74 setup_token(struct krb5_ctx *ctx, struct xdr_netobj *token) in setup_token() argument
79 token->len = g_token_size(&ctx->mech_used, body_size); in setup_token()
81 ptr = (__be16 *)token->data; in setup_token()
95 setup_token_v2(struct krb5_ctx *ctx, struct xdr_netobj *token) in setup_token_v2() argument
107 krb5_hdr = ptr = (__be16 *)token->data; in setup_token_v2()
117 token->len = GSS_KRB5_TOK_HDR_LEN + ctx->gk5e->cksumlength; in setup_token_v2()
123 struct xdr_netobj *token) in gss_get_mic_v1() argument
138 ptr = setup_token(ctx, token); in gss_get_mic_v1()
164 struct xdr_netobj *token) in gss_get_mic_v2() argument
177 krb5_hdr = setup_token_v2(ctx, token); in gss_get_mic_v2()
[all …]
/net/ceph/
Dceph_common.c342 int token, intval, ret; in ceph_parse_options() local
346 token = match_token((char *)c, opt_tokens, argstr); in ceph_parse_options()
347 if (token < 0 && parse_extra_token) { in ceph_parse_options()
356 if (token < Opt_last_int) { in ceph_parse_options()
363 dout("got int token %d val %d\n", token, intval); in ceph_parse_options()
364 } else if (token > Opt_last_int && token < Opt_last_string) { in ceph_parse_options()
365 dout("got string token %d val %s\n", token, in ceph_parse_options()
368 dout("got token %d\n", token); in ceph_parse_options()
370 switch (token) { in ceph_parse_options()
441 BUG_ON(token); in ceph_parse_options()
/net/ipv4/
Dinetpeer.c557 unsigned long now, token; in inet_peer_xrlim_allow() local
563 token = peer->rate_tokens; in inet_peer_xrlim_allow()
565 token += now - peer->rate_last; in inet_peer_xrlim_allow()
567 if (token > XRLIM_BURST_FACTOR * timeout) in inet_peer_xrlim_allow()
568 token = XRLIM_BURST_FACTOR * timeout; in inet_peer_xrlim_allow()
569 if (token >= timeout) { in inet_peer_xrlim_allow()
570 token -= timeout; in inet_peer_xrlim_allow()
573 peer->rate_tokens = token; in inet_peer_xrlim_allow()
/net/mac80211/
Dspectmgmt.c59 msr_report->u.action.u.measurement.msr_elem.token = request_ie->token; in ieee80211_send_refuse_measurement_request()
/net/9p/
Dtrans_rdma.c190 int token; in parse_opts() local
194 token = match_token(p, tokens, args); in parse_opts()
201 switch (token) { in parse_opts()
Dtrans_fd.c739 int token; in parse_opts() local
743 token = match_token(p, tokens, args); in parse_opts()
744 if (token != Opt_err) { in parse_opts()
752 switch (token) { in parse_opts()
Dclient.c145 int token, r; in parse_opts() local
148 token = match_token(p, tokens, args); in parse_opts()
149 switch (token) { in parse_opts()
/net/ipv6/
Daddrconf.c452 ndev->token = in6addr_any; in ipv6_add_dev()
2230 if (!ipv6_addr_any(&in6_dev->token)) { in addrconf_prefix_rcv()
2233 in6_dev->token.s6_addr + 8, 8); in addrconf_prefix_rcv()
4382 memcpy(nla_data(nla), idev->token.s6_addr, nla_len(nla)); in inet6_fill_ifla6_attrs()
4412 static int inet6_set_iftoken(struct inet6_dev *idev, struct in6_addr *token) in inet6_set_iftoken() argument
4419 if (token == NULL) in inet6_set_iftoken()
4421 if (ipv6_addr_any(token)) in inet6_set_iftoken()
4432 BUILD_BUG_ON(sizeof(token->s6_addr) != 16); in inet6_set_iftoken()
4433 memcpy(idev->token.s6_addr + 8, token->s6_addr + 8, 8); in inet6_set_iftoken()
Dip6_fib.c136 static __inline__ __be32 addr_bit_set(const void *token, int fn_bit) in addr_bit_set() argument
138 const __be32 *addr = token; in addr_bit_set()