Home
last modified time | relevance | path

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

/linux/include/net/
H A Dtcp_ao.h208 void tcp_ao_calc_traffic_key(const struct tcp_ao_key *mkt, u8 *traffic_key,
239 int tcp_v4_ao_synack_hash(char *ao_hash, struct tcp_ao_key *mkt,
242 void tcp_v4_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key,
245 void tcp_v4_ao_calc_key_rsk(struct tcp_ao_key *mkt, u8 *key,
257 void tcp_v6_ao_calc_key_skb(struct tcp_ao_key *mkt, u8 *key,
260 void tcp_v6_ao_calc_key_sk(struct tcp_ao_key *mkt, u8 *key,
263 void tcp_v6_ao_calc_key_rsk(struct tcp_ao_key *mkt, u8 *key,
/linux/net/ipv4/
H A Dtcp_ao.c131 void tcp_ao_calc_traffic_key(const struct tcp_ao_key *mkt, u8 *traffic_key, in tcp_ao_calc_traffic_key() argument
134 switch (mkt->algo) { in tcp_ao_calc_traffic_key()
136 hmac_sha1_usingrawkey(mkt->key, mkt->keylen, input, input_len, in tcp_ao_calc_traffic_key()
140 hmac_sha256_usingrawkey(mkt->key, mkt->keylen, input, input_len, in tcp_ao_calc_traffic_key()
146 aes_cmac_preparekey(&k, mkt->key, AES_KEYSIZE_128); in tcp_ao_calc_traffic_key()
344 static void tcp_ao_link_mkt(struct tcp_ao_info *ao, struct tcp_ao_key *mkt) in tcp_ao_link_mkt() argument
346 hlist_add_head_rcu(&mkt->node, &ao->head); in tcp_ao_link_mkt()
440 static void tcp_v4_ao_calc_key(struct tcp_ao_key *mkt, u8 *key, in tcp_v4_ao_calc_key() argument
462 .outlen = htons(tcp_ao_digest_size(mkt) * 8), /* in bits */ in tcp_v4_ao_calc_key()
465 tcp_ao_calc_traffic_key(mkt, key, &input, sizeof(input)); in tcp_v4_ao_calc_key()
[all …]