Lines Matching refs:tx_key
272 u8 tx_key, struct sk_buff *skb,
285 u8 tx_key);
287 static int tipc_crypto_key_revoke(struct net *net, u8 tx_key);
1035 u8 tx_key, struct sk_buff *skb, in tipc_ehdr_build() argument
1060 return tipc_crypto_key_revoke(net, tx_key); in tipc_ehdr_build()
1069 ehdr->tx_key = tx_key; in tipc_ehdr_build()
1317 u8 tx_key) in tipc_crypto_key_pick_tx() argument
1336 if (tx_key == KEY_MASTER) { in tipc_crypto_key_pick_tx()
1443 static int tipc_crypto_key_revoke(struct net *net, u8 tx_key) in tipc_crypto_key_revoke() argument
1450 WARN_ON(!key.active || tx_key != key.active); in tipc_crypto_key_revoke()
1697 u8 tx_key = 0; in tipc_crypto_xmit() local
1705 tx_key = key.pending; in tipc_crypto_xmit()
1708 if (__rx && atomic_read(&__rx->peer_rx_active) == tx_key) in tipc_crypto_xmit()
1722 tx_key = KEY_MASTER; in tipc_crypto_xmit()
1748 tx_key = key.active; in tipc_crypto_xmit()
1755 aead = tipc_aead_get(tx->aead[tx_key]); in tipc_crypto_xmit()
1758 rc = tipc_ehdr_build(net, aead, tx_key, *skb, __rx); in tipc_crypto_xmit()
1817 u8 tx_key, n; in tipc_crypto_rcv() local
1819 tx_key = ((struct tipc_ehdr *)(*skb)->data)->tx_key; in tipc_crypto_rcv()
1824 if (unlikely(!rx || tx_key == KEY_MASTER)) in tipc_crypto_rcv()
1829 if (tx_key == key.active || tx_key == key.pending || in tipc_crypto_rcv()
1830 tx_key == key.passive) in tipc_crypto_rcv()
1834 if (tipc_crypto_key_try_align(rx, tx_key)) in tipc_crypto_rcv()
1839 aead = tipc_crypto_key_pick_tx(tx, rx, *skb, tx_key); in tipc_crypto_rcv()
1847 aead = tipc_aead_get(rx->aead[tx_key]); in tipc_crypto_rcv()
1872 n = key_next(tx_key); in tipc_crypto_rcv()
1877 tx_key, rx->key.keys); in tipc_crypto_rcv()
1933 if (ehdr->tx_key == KEY_MASTER) in tipc_crypto_rcv_complete()
1938 if (tipc_crypto_key_attach(rx, tmp, ehdr->tx_key, false) < 0) { in tipc_crypto_rcv_complete()
1962 if (rx->key.passive && ehdr->tx_key == rx->key.passive) in tipc_crypto_rcv_complete()