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);
1031 u8 tx_key, struct sk_buff *skb, in tipc_ehdr_build() argument
1056 return tipc_crypto_key_revoke(net, tx_key); in tipc_ehdr_build()
1065 ehdr->tx_key = tx_key; in tipc_ehdr_build()
1313 u8 tx_key) in tipc_crypto_key_pick_tx() argument
1332 if (tx_key == KEY_MASTER) { in tipc_crypto_key_pick_tx()
1439 static int tipc_crypto_key_revoke(struct net *net, u8 tx_key) in tipc_crypto_key_revoke() argument
1446 WARN_ON(!key.active || tx_key != key.active); in tipc_crypto_key_revoke()
1693 u8 tx_key = 0; in tipc_crypto_xmit() local
1701 tx_key = key.pending; in tipc_crypto_xmit()
1704 if (__rx && atomic_read(&__rx->peer_rx_active) == tx_key) in tipc_crypto_xmit()
1718 tx_key = KEY_MASTER; in tipc_crypto_xmit()
1744 tx_key = key.active; in tipc_crypto_xmit()
1751 aead = tipc_aead_get(tx->aead[tx_key]); in tipc_crypto_xmit()
1754 rc = tipc_ehdr_build(net, aead, tx_key, *skb, __rx); in tipc_crypto_xmit()
1813 u8 tx_key, n; in tipc_crypto_rcv() local
1815 tx_key = ((struct tipc_ehdr *)(*skb)->data)->tx_key; in tipc_crypto_rcv()
1820 if (unlikely(!rx || tx_key == KEY_MASTER)) in tipc_crypto_rcv()
1825 if (tx_key == key.active || tx_key == key.pending || in tipc_crypto_rcv()
1826 tx_key == key.passive) in tipc_crypto_rcv()
1830 if (tipc_crypto_key_try_align(rx, tx_key)) in tipc_crypto_rcv()
1835 aead = tipc_crypto_key_pick_tx(tx, rx, *skb, tx_key); in tipc_crypto_rcv()
1843 aead = tipc_aead_get(rx->aead[tx_key]); in tipc_crypto_rcv()
1868 n = key_next(tx_key); in tipc_crypto_rcv()
1873 tx_key, rx->key.keys); in tipc_crypto_rcv()
1929 if (ehdr->tx_key == KEY_MASTER) in tipc_crypto_rcv_complete()
1934 if (tipc_crypto_key_attach(rx, tmp, ehdr->tx_key, false) < 0) { in tipc_crypto_rcv_complete()
1958 if (rx->key.passive && ehdr->tx_key == rx->key.passive) in tipc_crypto_rcv_complete()