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