Home
last modified time | relevance | path

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

/linux-6.12.1/net/ipv6/
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.12.1/include/net/
Dtcp_ao.h191 int tcp_ao_calc_traffic_key(struct tcp_ao_key *mkt, u8 *key, void *ctx,
222 int tcp_v4_ao_synack_hash(char *ao_hash, struct tcp_ao_key *mkt,
225 int tcp_v4_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key,
228 int tcp_v4_ao_calc_key_rsk(struct tcp_ao_key *mkt, u8 *key,
240 int tcp_v6_ao_calc_key_skb(struct tcp_ao_key *mkt, u8 *key,
242 int tcp_v6_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key,
245 int tcp_v6_ao_calc_key_rsk(struct tcp_ao_key *mkt, u8 *key,
Dtcp.h2256 int (*ao_calc_key_sk)(struct tcp_ao_key *mkt, u8 *key,
2279 int (*ao_calc_key)(struct tcp_ao_key *mkt, u8 *key, struct request_sock *sk);
2280 int (*ao_synack_hash)(char *ao_hash, struct tcp_ao_key *mkt,
/linux-6.12.1/net/ipv4/
Dtcp_ao.c23 int tcp_ao_calc_traffic_key(struct tcp_ao_key *mkt, u8 *key, void *ctx, in tcp_ao_calc_traffic_key() argument
30 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()
238 static void tcp_ao_link_mkt(struct tcp_ao_info *ao, struct tcp_ao_key *mkt) in tcp_ao_link_mkt() argument
240 hlist_add_head_rcu(&mkt->node, &ao->head); in tcp_ao_link_mkt()
337 static int tcp_v4_ao_calc_key(struct tcp_ao_key *mkt, u8 *key, in tcp_v4_ao_calc_key() argument
352 err = tcp_sigpool_start(mkt->tcp_sigpool_id, &hp); in tcp_v4_ao_calc_key()
365 tmp->outlen = htons(tcp_ao_digest_size(mkt) * 8); /* in bits */ in tcp_v4_ao_calc_key()
367 err = tcp_ao_calc_traffic_key(mkt, key, tmp, sizeof(*tmp), &hp); in tcp_v4_ao_calc_key()
373 int tcp_v4_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key, in tcp_v4_ao_calc_key_sk() argument
[all …]