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);
1028 * @tx_key: key id used for the message encryption
1035 u8 tx_key, struct sk_buff *skb,
1060 return tipc_crypto_key_revoke(net, tx_key);
1069 ehdr->tx_key = tx_key;
1306 * @tx_key: peer TX key id
1317 u8 tx_key)
1336 if (tx_key == KEY_MASTER) {
1443 static int tipc_crypto_key_revoke(struct net *net, u8 tx_key)
1450 WARN_ON(!key.active || tx_key != key.active);
1697 u8 tx_key = 0;
1705 tx_key = key.pending;
1708 if (__rx && atomic_read(&__rx->peer_rx_active) == tx_key)
1722 tx_key = KEY_MASTER;
1748 tx_key = key.active;
1755 aead = tipc_aead_get(tx->aead[tx_key]);
1758 rc = tipc_ehdr_build(net, aead, tx_key, *skb, __rx);
1817 u8 tx_key, n;
1819 tx_key = ((struct tipc_ehdr *)(*skb)->data)->tx_key;
1824 if (unlikely(!rx || tx_key == KEY_MASTER))
1829 if (tx_key == key.active || tx_key == key.pending ||
1830 tx_key == key.passive)
1834 if (tipc_crypto_key_try_align(rx, tx_key))
1839 aead = tipc_crypto_key_pick_tx(tx, rx, *skb, tx_key);
1847 aead = tipc_aead_get(rx->aead[tx_key]);
1872 n = key_next(tx_key);
1877 tx_key, rx->key.keys);
1933 if (ehdr->tx_key == KEY_MASTER)
1938 if (tipc_crypto_key_attach(rx, tmp, ehdr->tx_key, false) < 0) {
1962 if (rx->key.passive && ehdr->tx_key == rx->key.passive)