Lines Matching defs:crypto

3  * net/tipc/crypto.c: TIPC crypto for key handling & packet en/decryption
37 #include <crypto/aead.h>
38 #include <crypto/aes.h>
39 #include <crypto/rng.h>
40 #include "crypto.h"
83 /* TIPC crypto statistics' header */
137 * @crypto: TIPC crypto owns this key
142 * @mode: crypto mode is applied to the key
153 struct tipc_crypto *crypto;
171 * @stat: array of crypto statistics
178 * struct tipc_crypto - TIPC TX/RX crypto structure
187 * @wq: common workqueue on TX crypto
191 * @stats: the crypto statistics
192 * @name: the crypto name
196 * @working: the crypto is working or not
234 spinlock_t lock; /* crypto lock */
310 #define is_tx(crypto) (!(crypto)->node)
311 #define is_rx(crypto) (!is_tx(crypto))
664 * @crypto_ctx_size: size of crypto context for callback
670 * Allocate memory to store the crypto context data, AEAD request, IV and SG
812 if (!maybe_get_net(aead->crypto->net)) {
824 put_net(aead->crypto->net);
838 struct tipc_crypto *tx = aead->crypto;
963 struct tipc_crypto_stats __percpu *stats = aead->crypto->stats;
964 struct net *net = aead->crypto->net;
1026 * @__rx: RX crypto handle if dest is "known"
1069 ehdr->master_key = aead->crypto->key_master;
1109 * @c: TIPC crypto to which new key is attached
1115 * key, then attached to the TIPC crypto.
1128 /* Attach it to the crypto */
1139 * tipc_crypto_key_attach - Attach a new AEAD key to TIPC crypto
1140 * @c: TIPC crypto to which the new AEAD key is attached
1142 * @pos: desired slot in the crypto key array, = 0 if any!
1186 aead->crypto = c;
1237 * @rx: RX crypto handle
1299 * @tx: TX crypto handle
1300 * @rx: RX crypto handle (can be NULL)
1368 * @rx: RX crypto handle
1457 int tipc_crypto_start(struct tipc_crypto **crypto, struct net *net,
1462 if (*crypto)
1465 /* Allocate crypto */
1509 *crypto = c;
1513 void tipc_crypto_stop(struct tipc_crypto **crypto)
1515 struct tipc_crypto *c = *crypto;
1535 /* Free this crypto statistics */
1538 *crypto = NULL;
1786 * @rx: RX crypto handle
1893 struct tipc_crypto *rx = aead->crypto;
1899 if (unlikely(is_tx(aead->crypto))) {
1906 aead->crypto->aead[1], aead->crypto->aead[2],
1907 aead->crypto->aead[3]);
2032 /* Print crypto statistics */
2185 * @tx: the TX crypto
2269 * @rx: the RX crypto
2273 * schedules a RX work to attach the key to the corresponding RX crypto.
2332 /* Schedule the key attaching on this crypto */
2344 * or attaching a received session key on RX crypto.
2402 * @tx: TX crypto
2432 * TX crypto and finally distributing it to peers. It also re-schedules the