Home
last modified time | relevance | path

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

/linux-6.15/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.c885 tot_len += tcp_ao_len_aligned(key->ao_key); in tcp_v6_send_response()
940 (tcp_ao_len(key->ao_key) << 16) | in tcp_v6_send_response()
941 (key->ao_key->sndid << 8) | in tcp_v6_send_response()
1109 &key.ao_key, &key.traffic_key, in tcp_v6_send_reset()
1183 key.ao_key = tcp_ao_established_key(sk, ao_info,
1187 if (key.ao_key) {
1190 key.traffic_key = snd_other_key(key.ao_key);
1239 key.ao_key = tcp_ao_do_lookup(sk, l3index,
1242 if (unlikely(!key.ao_key)) {
1244 key.ao_key = tcp_ao_do_lookup(sk, l3index,
[all …]
/linux-6.15/net/ipv4/
H A Dtcp_minisocks.c621 struct tcp_ao_key *ao_key; in tcp_create_openreq_child() local
623 ao_key = treq->af_specific->ao_lookup(sk, req, tcp_rsk(req)->ao_keyid, -1); in tcp_create_openreq_child()
624 if (ao_key) in tcp_create_openreq_child()
625 newtp->tcp_header_len += tcp_ao_len_aligned(ao_key); in tcp_create_openreq_child()
H A Dtcp_ao.c680 int tcp_v4_ao_synack_hash(char *ao_hash, struct tcp_ao_key *ao_key, in tcp_v4_ao_synack_hash() argument
687 hash_buf = kmalloc(tcp_ao_digest_size(ao_key), GFP_ATOMIC); in tcp_v4_ao_synack_hash()
691 err = tcp_v4_ao_calc_key_rsk(ao_key, hash_buf, req); in tcp_v4_ao_synack_hash()
695 err = tcp_ao_hash_skb(AF_INET, ao_hash, ao_key, req_to_sk(req), skb, in tcp_v4_ao_synack_hash()
1078 struct tcp_ao_key *ao_key) in tcp_ao_cache_traffic_keys() argument
1080 u8 *traffic_key = snd_other_key(ao_key); in tcp_ao_cache_traffic_keys()
1083 ret = tcp_ao_calc_key_sk(ao_key, traffic_key, sk, in tcp_ao_cache_traffic_keys()
1088 traffic_key = rcv_other_key(ao_key); in tcp_ao_cache_traffic_keys()
1089 ret = tcp_ao_calc_key_sk(ao_key, traffic_key, sk, in tcp_ao_cache_traffic_keys()
H A Dtcp_ipv4.c995 (tcp_ao_len(key->ao_key) << 16) | in tcp_v4_send_ack()
996 (key->ao_key->sndid << 8) | in tcp_v4_send_ack()
998 arg.iov[0].iov_len += tcp_ao_len_aligned(key->ao_key); in tcp_v4_send_ack()
1002 key->ao_key, key->traffic_key, in tcp_v4_send_ack()
1068 key.ao_key = tcp_ao_established_key(sk, ao_info,
1072 if (key.ao_key) {
1075 key.traffic_key = snd_other_key(key.ao_key);
1128 key.ao_key = tcp_ao_do_lookup(sk, l3index, addr, AF_INET,
1130 if (unlikely(!key.ao_key)) {
1136 if (!key.ao_key) {
[all …]
H A Dtcp_output.c619 u8 maclen = tcp_ao_maclen(key->ao_key); in process_tcp_ao_options()
637 (tcp_ao_len(key->ao_key) << 16) | in process_tcp_ao_options()
638 (key->ao_key->sndid << 8) | in process_tcp_ao_options()
837 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_syn_options()
929 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_synack_options()
1002 size += tcp_ao_len_aligned(key->ao_key); in tcp_established_options()
1437 err = tcp_ao_transmit_skb(sk, skb, key.ao_key, th, in __tcp_transmit_skb()
3778 struct tcp_ao_key *ao_key = NULL; in tcp_make_synack() local
3789 if (unlikely(!ao_key)) { in tcp_make_synack()
3797 key.ao_key = ao_key; in tcp_make_synack()
[all …]
/linux-6.15/include/net/
H A Dtcp_ao.h257 int tcp_v6_ao_synack_hash(char *ao_hash, struct tcp_ao_key *ao_key,
H A Dtcp.h2400 struct tcp_ao_key *ao_key; member
2428 out->ao_key = READ_ONCE(ao->current_key); in tcp_get_current_key()
2874 struct tcp_ao_key *ao_key; in tcp_ao_required() local
2884 ao_key = tcp_ao_do_lookup(sk, l3index, saddr, family, -1, -1); in tcp_ao_required()
2885 if (ao_info->ao_required || ao_key) { in tcp_ao_required()