• Home
  • Raw
  • Download

Lines Matching refs:crypto

2318 struct crypto {  struct
2356 alloc_crypto(struct crypto *crypto, struct net_conf *new_net_conf) in alloc_crypto() argument
2361 rv = alloc_ahash(&crypto->csums_tfm, new_net_conf->csums_alg, in alloc_crypto()
2365 rv = alloc_ahash(&crypto->verify_tfm, new_net_conf->verify_alg, in alloc_crypto()
2369 rv = alloc_ahash(&crypto->integrity_tfm, new_net_conf->integrity_alg, in alloc_crypto()
2377 rv = alloc_shash(&crypto->cram_hmac_tfm, hmac_name, in alloc_crypto()
2384 static void free_crypto(struct crypto *crypto) in free_crypto() argument
2386 crypto_free_shash(crypto->cram_hmac_tfm); in free_crypto()
2387 crypto_free_ahash(crypto->integrity_tfm); in free_crypto()
2388 crypto_free_ahash(crypto->csums_tfm); in free_crypto()
2389 crypto_free_ahash(crypto->verify_tfm); in free_crypto()
2401 struct crypto crypto = { }; in drbd_adm_net_opts() local
2459 retcode = alloc_crypto(&crypto, new_net_conf); in drbd_adm_net_opts()
2467 connection->csums_tfm = crypto.csums_tfm; in drbd_adm_net_opts()
2468 crypto.csums_tfm = NULL; in drbd_adm_net_opts()
2472 connection->verify_tfm = crypto.verify_tfm; in drbd_adm_net_opts()
2473 crypto.verify_tfm = NULL; in drbd_adm_net_opts()
2477 connection->integrity_tfm = crypto.integrity_tfm; in drbd_adm_net_opts()
2483 connection->cram_hmac_tfm = crypto.cram_hmac_tfm; in drbd_adm_net_opts()
2503 free_crypto(&crypto); in drbd_adm_net_opts()
2542 struct crypto crypto = { }; in drbd_adm_connect() local
2611 retcode = alloc_crypto(&crypto, new_net_conf); in drbd_adm_connect()
2629 connection->cram_hmac_tfm = crypto.cram_hmac_tfm; in drbd_adm_connect()
2630 connection->integrity_tfm = crypto.integrity_tfm; in drbd_adm_connect()
2631 connection->csums_tfm = crypto.csums_tfm; in drbd_adm_connect()
2632 connection->verify_tfm = crypto.verify_tfm; in drbd_adm_connect()
2673 free_crypto(&crypto); in drbd_adm_connect()