Home
last modified time | relevance | path

Searched refs:ao_key (Results 1 – 6 of 6) sorted by relevance

/linux/net/ipv6/
H A Dtcp_ao.c148 int tcp_v6_ao_synack_hash(char *ao_hash, struct tcp_ao_key *ao_key, in tcp_v6_ao_synack_hash() argument
155 hash_buf = kmalloc(tcp_ao_digest_size(ao_key), GFP_ATOMIC); in tcp_v6_ao_synack_hash()
159 err = tcp_v6_ao_calc_key_rsk(ao_key, hash_buf, req); in tcp_v6_ao_synack_hash()
163 err = tcp_ao_hash_skb(AF_INET6, ao_hash, ao_key, req_to_sk(req), skb, in tcp_v6_ao_synack_hash()
H A Dtcp_ipv6.c860 tot_len += tcp_ao_len_aligned(key->ao_key); in tcp_v6_send_response()
915 (tcp_ao_len(key->ao_key) << 16) | in tcp_v6_send_response()
916 (key->ao_key->sndid << 8) | in tcp_v6_send_response()
919 tcp_ao_hash_hdr(AF_INET6, (char *)topt, key->ao_key, in tcp_v6_send_response()
1083 &key.ao_key, &key.traffic_key, in tcp_v6_send_reset()
1158 key.ao_key = tcp_ao_established_key(sk, ao_info,
1162 if (key.ao_key) {
1165 key.traffic_key = snd_other_key(key.ao_key);
1214 key.ao_key = tcp_ao_do_lookup(sk, l3index,
1217 if (unlikely(!key.ao_key)) {
[all …]
/linux/net/ipv4/
H A Dtcp_minisocks.c650 struct tcp_ao_key *ao_key; in tcp_create_openreq_child() local
652 ao_key = treq->af_specific->ao_lookup(sk, req, tcp_rsk(req)->ao_keyid, -1); in tcp_create_openreq_child()
653 if (ao_key) in tcp_create_openreq_child()
654 newtp->tcp_header_len += tcp_ao_len_aligned(ao_key); in tcp_create_openreq_child()
H A Dtcp_ao.c681 int tcp_v4_ao_synack_hash(char *ao_hash, struct tcp_ao_key *ao_key, in tcp_v4_ao_synack_hash() argument
688 hash_buf = kmalloc(tcp_ao_digest_size(ao_key), GFP_ATOMIC); in tcp_v4_ao_synack_hash()
692 err = tcp_v4_ao_calc_key_rsk(ao_key, hash_buf, req); in tcp_v4_ao_synack_hash()
696 err = tcp_ao_hash_skb(AF_INET, ao_hash, ao_key, req_to_sk(req), skb, in tcp_v4_ao_synack_hash()
1079 struct tcp_ao_key *ao_key) in tcp_ao_cache_traffic_keys() argument
1081 u8 *traffic_key = snd_other_key(ao_key); in tcp_ao_cache_traffic_keys()
1084 ret = tcp_ao_calc_key_sk(ao_key, traffic_key, sk, in tcp_ao_cache_traffic_keys()
1089 traffic_key = rcv_other_key(ao_key); in tcp_ao_cache_traffic_keys()
1090 ret = tcp_ao_calc_key_sk(ao_key, traffic_key, sk, in tcp_ao_cache_traffic_keys()
H A Dtcp_ipv4.c969 (tcp_ao_len(key->ao_key) << 16) | in tcp_v4_send_ack()
970 (key->ao_key->sndid << 8) | in tcp_v4_send_ack()
972 arg.iov[0].iov_len += tcp_ao_len_aligned(key->ao_key); in tcp_v4_send_ack()
976 key->ao_key, key->traffic_key, in tcp_v4_send_ack()
1042 key.ao_key = tcp_ao_established_key(sk, ao_info,
1046 if (key.ao_key) {
1049 key.traffic_key = snd_other_key(key.ao_key);
1102 key.ao_key = tcp_ao_do_lookup(sk, l3index, addr, AF_INET,
1104 if (unlikely(!key.ao_key)) {
1106 key.ao_key = tcp_ao_do_lookup(sk, l3index, addr, AF_INET, -1, -1);
[all …]
/linux/include/net/
H A Dtcp.h2586 struct tcp_ao_key *ao_key; member
2614 out->ao_key = READ_ONCE(ao->current_key); in tcp_get_current_key()
3057 struct tcp_ao_key *ao_key; in tcp_ao_required() local
3067 ao_key = tcp_ao_do_lookup(sk, l3index, saddr, family, -1, -1); in tcp_ao_required()
3068 if (ao_info->ao_required || ao_key) { in tcp_ao_required()