Lines Matching refs:mkt
22 int tcp_ao_calc_traffic_key(struct tcp_ao_key *mkt, u8 *key, void *ctx,
29 mkt->key, mkt->keylen))
46 memset(key, 0, tcp_ao_digest_size(mkt));
237 static void tcp_ao_link_mkt(struct tcp_ao_info *ao, struct tcp_ao_key *mkt)
239 hlist_add_head_rcu(&mkt->node, &ao->head);
319 static int tcp_v4_ao_calc_key(struct tcp_ao_key *mkt, u8 *key,
334 err = tcp_sigpool_start(mkt->tcp_sigpool_id, &hp);
347 tmp->outlen = htons(tcp_ao_digest_size(mkt) * 8); /* in bits */
349 err = tcp_ao_calc_traffic_key(mkt, key, tmp, sizeof(*tmp), &hp);
355 int tcp_v4_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key,
360 return tcp_v4_ao_calc_key(mkt, key, sk->sk_rcv_saddr,
364 return tcp_v4_ao_calc_key(mkt, key, sk->sk_daddr,
369 static int tcp_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key,
373 if (mkt->family == AF_INET)
374 return tcp_v4_ao_calc_key_sk(mkt, key, sk, sisn, disn, send);
376 else if (mkt->family == AF_INET6)
377 return tcp_v6_ao_calc_key_sk(mkt, key, sk, sisn, disn, send);
383 int tcp_v4_ao_calc_key_rsk(struct tcp_ao_key *mkt, u8 *key,
388 return tcp_v4_ao_calc_key(mkt, key,
395 static int tcp_v4_ao_calc_key_skb(struct tcp_ao_key *mkt, u8 *key,
402 return tcp_v4_ao_calc_key(mkt, key, iph->saddr, iph->daddr,
406 static int tcp_ao_calc_key_skb(struct tcp_ao_key *mkt, u8 *key,
411 return tcp_v4_ao_calc_key_skb(mkt, key, skb, sisn, disn);
414 return tcp_v6_ao_calc_key_skb(mkt, key, skb, sisn, disn);
960 * matching the rcvid in the mkt.