Lines Matching defs:mkt
23 int tcp_ao_calc_traffic_key(struct tcp_ao_key *mkt, u8 *key, void *ctx,
30 mkt->key, mkt->keylen))
47 memset(key, 0, tcp_ao_digest_size(mkt));
239 static void tcp_ao_link_mkt(struct tcp_ao_info *ao, struct tcp_ao_key *mkt)
241 hlist_add_head_rcu(&mkt->node, &ao->head);
337 static int tcp_v4_ao_calc_key(struct tcp_ao_key *mkt, u8 *key,
352 err = tcp_sigpool_start(mkt->tcp_sigpool_id, &hp);
365 tmp->outlen = htons(tcp_ao_digest_size(mkt) * 8); /* in bits */
367 err = tcp_ao_calc_traffic_key(mkt, key, tmp, sizeof(*tmp), &hp);
373 int tcp_v4_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key,
378 return tcp_v4_ao_calc_key(mkt, key, sk->sk_rcv_saddr,
382 return tcp_v4_ao_calc_key(mkt, key, sk->sk_daddr,
387 static int tcp_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key,
391 if (mkt->family == AF_INET)
392 return tcp_v4_ao_calc_key_sk(mkt, key, sk, sisn, disn, send);
394 else if (mkt->family == AF_INET6)
395 return tcp_v6_ao_calc_key_sk(mkt, key, sk, sisn, disn, send);
401 int tcp_v4_ao_calc_key_rsk(struct tcp_ao_key *mkt, u8 *key,
406 return tcp_v4_ao_calc_key(mkt, key,
413 static int tcp_v4_ao_calc_key_skb(struct tcp_ao_key *mkt, u8 *key,
420 return tcp_v4_ao_calc_key(mkt, key, iph->saddr, iph->daddr,
424 static int tcp_ao_calc_key_skb(struct tcp_ao_key *mkt, u8 *key,
429 return tcp_v4_ao_calc_key_skb(mkt, key, skb, sisn, disn);
432 return tcp_v6_ao_calc_key_skb(mkt, key, skb, sisn, disn);
978 * matching the rcvid in the mkt.