Lines Matching refs:crypto
153 struct tipc_crypto *crypto; member
310 #define is_tx(crypto) (!(crypto)->node) argument
311 #define is_rx(crypto) (!is_tx(crypto)) argument
821 if (!maybe_get_net(aead->crypto->net)) { in tipc_aead_encrypt()
833 put_net(aead->crypto->net); in tipc_aead_encrypt()
847 struct tipc_crypto *tx = aead->crypto; in tipc_aead_encrypt_done()
972 struct tipc_crypto_stats __percpu *stats = aead->crypto->stats; in tipc_aead_decrypt_done()
973 struct net *net = aead->crypto->net; in tipc_aead_decrypt_done()
1078 ehdr->master_key = aead->crypto->key_master; in tipc_ehdr_build()
1195 aead->crypto = c; in tipc_crypto_key_attach()
1466 int tipc_crypto_start(struct tipc_crypto **crypto, struct net *net, in tipc_crypto_start() argument
1471 if (*crypto) in tipc_crypto_start()
1518 *crypto = c; in tipc_crypto_start()
1522 void tipc_crypto_stop(struct tipc_crypto **crypto) in tipc_crypto_stop() argument
1524 struct tipc_crypto *c = *crypto; in tipc_crypto_stop()
1547 *crypto = NULL; in tipc_crypto_stop()
1902 struct tipc_crypto *rx = aead->crypto; in tipc_crypto_rcv_complete()
1908 if (unlikely(is_tx(aead->crypto))) { in tipc_crypto_rcv_complete()
1915 aead->crypto->aead[1], aead->crypto->aead[2], in tipc_crypto_rcv_complete()
1916 aead->crypto->aead[3]); in tipc_crypto_rcv_complete()