Home
last modified time | relevance | path

Searched refs:mkt (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/net/ipv6/
H A Dtcp_ao.c16 static int tcp_v6_ao_calc_key(struct tcp_ao_key *mkt, u8 *key, in tcp_v6_ao_calc_key() argument
31 err = tcp_sigpool_start(mkt->tcp_sigpool_id, &hp); in tcp_v6_ao_calc_key()
44 tmp->outlen = htons(tcp_ao_digest_size(mkt) * 8); /* in bits */ in tcp_v6_ao_calc_key()
46 err = tcp_ao_calc_traffic_key(mkt, key, tmp, sizeof(*tmp), &hp); in tcp_v6_ao_calc_key()
52 int tcp_v6_ao_calc_key_skb(struct tcp_ao_key *mkt, u8 *key, in tcp_v6_ao_calc_key_skb() argument
59 return tcp_v6_ao_calc_key(mkt, key, &iph->saddr, in tcp_v6_ao_calc_key_skb()
64 int tcp_v6_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key, in tcp_v6_ao_calc_key_sk() argument
69 return tcp_v6_ao_calc_key(mkt, key, &sk->sk_v6_rcv_saddr, in tcp_v6_ao_calc_key_sk()
73 return tcp_v6_ao_calc_key(mkt, key, &sk->sk_v6_daddr, in tcp_v6_ao_calc_key_sk()
78 int tcp_v6_ao_calc_key_rsk(struct tcp_ao_key *mkt, u8 *key, in tcp_v6_ao_calc_key_rsk() argument
[all …]
/linux-6.15/include/net/
H A Dtcp_ao.h192 int tcp_ao_calc_traffic_key(struct tcp_ao_key *mkt, u8 *key, void *ctx,
223 int tcp_v4_ao_synack_hash(char *ao_hash, struct tcp_ao_key *mkt,
226 int tcp_v4_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key,
229 int tcp_v4_ao_calc_key_rsk(struct tcp_ao_key *mkt, u8 *key,
241 int tcp_v6_ao_calc_key_skb(struct tcp_ao_key *mkt, u8 *key,
243 int tcp_v6_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key,
246 int tcp_v6_ao_calc_key_rsk(struct tcp_ao_key *mkt, u8 *key,
H A Dtcp.h2328 int (*ao_calc_key_sk)(struct tcp_ao_key *mkt, u8 *key,
2351 int (*ao_calc_key)(struct tcp_ao_key *mkt, u8 *key, struct request_sock *sk);
2352 int (*ao_synack_hash)(char *ao_hash, struct tcp_ao_key *mkt,
/linux-6.15/net/ipv4/
H A Dtcp_ao.c30 mkt->key, mkt->keylen)) in tcp_ao_calc_traffic_key()
47 memset(key, 0, tcp_ao_digest_size(mkt)); in tcp_ao_calc_traffic_key()
241 hlist_add_head_rcu(&mkt->node, &ao->head); in tcp_ao_link_mkt()
353 err = tcp_sigpool_start(mkt->tcp_sigpool_id, &hp); in tcp_v4_ao_calc_key()
374 int tcp_v4_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key, in tcp_v4_ao_calc_key_sk() argument
379 return tcp_v4_ao_calc_key(mkt, key, sk->sk_rcv_saddr, in tcp_v4_ao_calc_key_sk()
383 return tcp_v4_ao_calc_key(mkt, key, sk->sk_daddr, in tcp_v4_ao_calc_key_sk()
392 if (mkt->family == AF_INET) in tcp_ao_calc_key_sk()
395 else if (mkt->family == AF_INET6) in tcp_ao_calc_key_sk()
402 int tcp_v4_ao_calc_key_rsk(struct tcp_ao_key *mkt, u8 *key, in tcp_v4_ao_calc_key_rsk() argument
[all …]