Lines Matching refs:tx_key
276 u8 tx_key, struct sk_buff *skb,
289 u8 tx_key);
291 static int tipc_crypto_key_revoke(struct net *net, u8 tx_key);
1040 u8 tx_key, struct sk_buff *skb, in tipc_ehdr_build() argument
1065 return tipc_crypto_key_revoke(net, tx_key); in tipc_ehdr_build()
1074 ehdr->tx_key = tx_key; in tipc_ehdr_build()
1322 u8 tx_key) in tipc_crypto_key_pick_tx() argument
1341 if (tx_key == KEY_MASTER) { in tipc_crypto_key_pick_tx()
1448 static int tipc_crypto_key_revoke(struct net *net, u8 tx_key) in tipc_crypto_key_revoke() argument
1455 WARN_ON(!key.active || tx_key != key.active); in tipc_crypto_key_revoke()
1702 u8 tx_key = 0; in tipc_crypto_xmit() local
1710 tx_key = key.pending; in tipc_crypto_xmit()
1713 if (__rx && atomic_read(&__rx->peer_rx_active) == tx_key) in tipc_crypto_xmit()
1727 tx_key = KEY_MASTER; in tipc_crypto_xmit()
1753 tx_key = key.active; in tipc_crypto_xmit()
1760 aead = tipc_aead_get(tx->aead[tx_key]); in tipc_crypto_xmit()
1763 rc = tipc_ehdr_build(net, aead, tx_key, *skb, __rx); in tipc_crypto_xmit()
1822 u8 tx_key, n; in tipc_crypto_rcv() local
1824 tx_key = ((struct tipc_ehdr *)(*skb)->data)->tx_key; in tipc_crypto_rcv()
1829 if (unlikely(!rx || tx_key == KEY_MASTER)) in tipc_crypto_rcv()
1834 if (tx_key == key.active || tx_key == key.pending || in tipc_crypto_rcv()
1835 tx_key == key.passive) in tipc_crypto_rcv()
1839 if (tipc_crypto_key_try_align(rx, tx_key)) in tipc_crypto_rcv()
1844 aead = tipc_crypto_key_pick_tx(tx, rx, *skb, tx_key); in tipc_crypto_rcv()
1852 aead = tipc_aead_get(rx->aead[tx_key]); in tipc_crypto_rcv()
1877 n = key_next(tx_key); in tipc_crypto_rcv()
1882 tx_key, rx->key.keys); in tipc_crypto_rcv()
1938 if (ehdr->tx_key == KEY_MASTER) in tipc_crypto_rcv_complete()
1943 if (tipc_crypto_key_attach(rx, tmp, ehdr->tx_key, false) < 0) { in tipc_crypto_rcv_complete()
1967 if (rx->key.passive && ehdr->tx_key == rx->key.passive) in tipc_crypto_rcv_complete()