Home
last modified time | relevance | path

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

/linux-6.12.1/net/ipv6/
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()
Dtcp_ipv6.c883 tot_len += tcp_ao_len_aligned(key->ao_key); in tcp_v6_send_response()
938 (tcp_ao_len(key->ao_key) << 16) | in tcp_v6_send_response()
939 (key->ao_key->sndid << 8) | in tcp_v6_send_response()
942 tcp_ao_hash_hdr(AF_INET6, (char *)topt, key->ao_key, in tcp_v6_send_response()
1104 &key.ao_key, &key.traffic_key, in tcp_v6_send_reset()
1172 key.ao_key = tcp_ao_established_key(ao_info,
1176 if (key.ao_key) {
1179 key.traffic_key = snd_other_key(key.ao_key);
1228 key.ao_key = tcp_ao_do_lookup(sk, l3index,
1231 if (unlikely(!key.ao_key)) {
[all …]
/linux-6.12.1/net/ipv4/
Dtcp_minisocks.c612 struct tcp_ao_key *ao_key; in tcp_create_openreq_child() local
614 ao_key = treq->af_specific->ao_lookup(sk, req, tcp_rsk(req)->ao_keyid, -1); in tcp_create_openreq_child()
615 if (ao_key) in tcp_create_openreq_child()
616 newtp->tcp_header_len += tcp_ao_len_aligned(ao_key); in tcp_create_openreq_child()
Dtcp_ao.c679 int tcp_v4_ao_synack_hash(char *ao_hash, struct tcp_ao_key *ao_key, in tcp_v4_ao_synack_hash() argument
686 hash_buf = kmalloc(tcp_ao_digest_size(ao_key), GFP_ATOMIC); in tcp_v4_ao_synack_hash()
690 err = tcp_v4_ao_calc_key_rsk(ao_key, hash_buf, req); in tcp_v4_ao_synack_hash()
694 err = tcp_ao_hash_skb(AF_INET, ao_hash, ao_key, req_to_sk(req), skb, in tcp_v4_ao_synack_hash()
1077 struct tcp_ao_key *ao_key) in tcp_ao_cache_traffic_keys() argument
1079 u8 *traffic_key = snd_other_key(ao_key); in tcp_ao_cache_traffic_keys()
1082 ret = tcp_ao_calc_key_sk(ao_key, traffic_key, sk, in tcp_ao_cache_traffic_keys()
1087 traffic_key = rcv_other_key(ao_key); in tcp_ao_cache_traffic_keys()
1088 ret = tcp_ao_calc_key_sk(ao_key, traffic_key, sk, in tcp_ao_cache_traffic_keys()
Dtcp_ipv4.c993 (tcp_ao_len(key->ao_key) << 16) | in tcp_v4_send_ack()
994 (key->ao_key->sndid << 8) | in tcp_v4_send_ack()
996 arg.iov[0].iov_len += tcp_ao_len_aligned(key->ao_key); in tcp_v4_send_ack()
1000 key->ao_key, key->traffic_key, in tcp_v4_send_ack()
1056 key.ao_key = tcp_ao_established_key(ao_info, aoh->rnext_keyid, -1);
1059 if (key.ao_key) {
1062 key.traffic_key = snd_other_key(key.ao_key);
1115 key.ao_key = tcp_ao_do_lookup(sk, l3index, addr, AF_INET,
1117 if (unlikely(!key.ao_key)) {
1119 key.ao_key = tcp_ao_do_lookup(sk, l3index, addr, AF_INET, -1, -1);
[all …]
Dtcp_output.c614 u8 maclen = tcp_ao_maclen(key->ao_key); in process_tcp_ao_options()
632 (tcp_ao_len(key->ao_key) << 16) | in process_tcp_ao_options()
633 (key->ao_key->sndid << 8) | in process_tcp_ao_options()
832 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_syn_options()
922 remaining -= tcp_ao_len_aligned(key->ao_key); in tcp_synack_options()
989 size += tcp_ao_len_aligned(key->ao_key); in tcp_established_options()
1424 err = tcp_ao_transmit_skb(sk, skb, key.ao_key, th, in __tcp_transmit_skb()
3769 struct tcp_ao_key *ao_key = NULL; in tcp_make_synack() local
3773 ao_key = tcp_sk(sk)->af_specific->ao_lookup(sk, req_to_sk(req), in tcp_make_synack()
3780 if (unlikely(!ao_key)) { in tcp_make_synack()
[all …]
/linux-6.12.1/include/net/
Dtcp_ao.h256 int tcp_v6_ao_synack_hash(char *ao_hash, struct tcp_ao_key *ao_key,
Dtcp.h2328 struct tcp_ao_key *ao_key; member
2356 out->ao_key = READ_ONCE(ao->current_key); in tcp_get_current_key()
2792 struct tcp_ao_key *ao_key; in tcp_ao_required() local
2802 ao_key = tcp_ao_do_lookup(sk, l3index, saddr, family, -1, -1); in tcp_ao_required()
2803 if (ao_info->ao_required || ao_key) { in tcp_ao_required()