Home
last modified time | relevance | path

Searched refs:algs (Results 1 – 22 of 22) sorted by relevance

/linux-4.4.14/arch/arm/crypto/
Dsha256_glue.c63 static struct shash_alg algs[] = { { variable
97 int res = crypto_register_shashes(algs, ARRAY_SIZE(algs)); in sha256_mod_init()
107 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha256_mod_init()
115 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha256_mod_fini()
Dsha2-ce-glue.c69 static struct shash_alg algs[] = { { variable
105 return crypto_register_shashes(algs, ARRAY_SIZE(algs)); in sha2_ce_mod_init()
110 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha2_ce_mod_fini()
/linux-4.4.14/drivers/crypto/vmx/
Dvmx.c34 static struct crypto_alg *algs[] = { variable
49 for (alg_it = algs; *alg_it; alg_it++) { in p8_init()
54 for (alg_it--; alg_it >= algs; alg_it--) in p8_init()
64 for (alg_it = algs; *alg_it; alg_it++) in p8_init()
74 for (alg_it = algs; *alg_it; alg_it++) { in p8_exit()
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt.c33 struct list_head algs; member
117 list_add(&alg->list, &hcrypt->algs); in ieee80211_register_crypto_ops()
136 for (ptr = hcrypt->algs.next; ptr != &hcrypt->algs; ptr = ptr->next) { in ieee80211_unregister_crypto_ops()
167 for (ptr = hcrypt->algs.next; ptr != &hcrypt->algs; ptr = ptr->next) { in ieee80211_get_crypto_ops()
210 INIT_LIST_HEAD(&hcrypt->algs); in ieee80211_crypto_init()
229 for (ptr = hcrypt->algs.next, n = ptr->next; ptr != &hcrypt->algs; in ieee80211_crypto_deinit()
/linux-4.4.14/arch/arm64/crypto/
Dsha2-ce-glue.c87 static struct shash_alg algs[] = { { variable
121 return crypto_register_shashes(algs, ARRAY_SIZE(algs)); in sha2_ce_mod_init()
126 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha2_ce_mod_fini()
/linux-4.4.14/crypto/
Drng.c206 int crypto_register_rngs(struct rng_alg *algs, int count) in crypto_register_rngs() argument
211 ret = crypto_register_rng(algs + i); in crypto_register_rngs()
220 crypto_unregister_rng(algs + i); in crypto_register_rngs()
226 void crypto_unregister_rngs(struct rng_alg *algs, int count) in crypto_unregister_rngs() argument
231 crypto_unregister_rng(algs + i); in crypto_unregister_rngs()
Daead.c378 int crypto_register_aeads(struct aead_alg *algs, int count) in crypto_register_aeads() argument
383 ret = crypto_register_aead(&algs[i]); in crypto_register_aeads()
392 crypto_unregister_aead(&algs[i]); in crypto_register_aeads()
398 void crypto_unregister_aeads(struct aead_alg *algs, int count) in crypto_unregister_aeads() argument
403 crypto_unregister_aead(&algs[i]); in crypto_unregister_aeads()
Dshash.c630 int crypto_register_shashes(struct shash_alg *algs, int count) in crypto_register_shashes() argument
635 ret = crypto_register_shash(&algs[i]); in crypto_register_shashes()
644 crypto_unregister_shash(&algs[i]); in crypto_register_shashes()
650 int crypto_unregister_shashes(struct shash_alg *algs, int count) in crypto_unregister_shashes() argument
655 ret = crypto_unregister_shash(&algs[i]); in crypto_unregister_shashes()
658 algs[i].base.cra_driver_name, in crypto_unregister_shashes()
659 algs[i].base.cra_name, ret); in crypto_unregister_shashes()
Dalgapi.c411 int crypto_register_algs(struct crypto_alg *algs, int count) in crypto_register_algs() argument
416 ret = crypto_register_alg(&algs[i]); in crypto_register_algs()
425 crypto_unregister_alg(&algs[i]); in crypto_register_algs()
431 int crypto_unregister_algs(struct crypto_alg *algs, int count) in crypto_unregister_algs() argument
436 ret = crypto_unregister_alg(&algs[i]); in crypto_unregister_algs()
439 algs[i].cra_driver_name, algs[i].cra_name, ret); in crypto_unregister_algs()
/linux-4.4.14/arch/sparc/crypto/
Dcamellia_glue.c226 static struct crypto_alg algs[] = { { variable
304 for (i = 0; i < ARRAY_SIZE(algs); i++) in camellia_sparc64_mod_init()
305 INIT_LIST_HEAD(&algs[i].cra_list); in camellia_sparc64_mod_init()
309 return crypto_register_algs(algs, ARRAY_SIZE(algs)); in camellia_sparc64_mod_init()
317 crypto_unregister_algs(algs, ARRAY_SIZE(algs)); in camellia_sparc64_mod_fini()
Daes_glue.c385 static struct crypto_alg algs[] = { { variable
482 for (i = 0; i < ARRAY_SIZE(algs); i++) in aes_sparc64_mod_init()
483 INIT_LIST_HEAD(&algs[i].cra_list); in aes_sparc64_mod_init()
487 return crypto_register_algs(algs, ARRAY_SIZE(algs)); in aes_sparc64_mod_init()
495 crypto_unregister_algs(algs, ARRAY_SIZE(algs)); in aes_sparc64_mod_fini()
Ddes_glue.c381 static struct crypto_alg algs[] = { { variable
515 for (i = 0; i < ARRAY_SIZE(algs); i++) in des_sparc64_mod_init()
516 INIT_LIST_HEAD(&algs[i].cra_list); in des_sparc64_mod_init()
520 return crypto_register_algs(algs, ARRAY_SIZE(algs)); in des_sparc64_mod_init()
528 crypto_unregister_algs(algs, ARRAY_SIZE(algs)); in des_sparc64_mod_fini()
/linux-4.4.14/arch/powerpc/crypto/
Dsha256-spe-glue.c220 static struct shash_alg algs[2] = { { variable
258 return crypto_register_shashes(algs, ARRAY_SIZE(algs)); in ppc_spe_sha256_mod_init()
263 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in ppc_spe_sha256_mod_fini()
/linux-4.4.14/include/crypto/internal/
Drng.h22 int crypto_register_rngs(struct rng_alg *algs, int count);
23 void crypto_unregister_rngs(struct rng_alg *algs, int count);
Daead.h158 int crypto_register_aeads(struct aead_alg *algs, int count);
159 void crypto_unregister_aeads(struct aead_alg *algs, int count);
Dhash.h99 int crypto_register_shashes(struct shash_alg *algs, int count);
100 int crypto_unregister_shashes(struct shash_alg *algs, int count);
/linux-4.4.14/net/xfrm/
Dxfrm_algo.c608 struct xfrm_algo_desc *algs; member
615 .algs = aead_list,
622 .algs = aalg_list,
629 .algs = ealg_list,
636 .algs = calg_list,
647 struct xfrm_algo_desc *list = algo_list->algs; in xfrm_find_algo()
/linux-4.4.14/drivers/crypto/
Ds5p-sss.c577 static struct crypto_alg algs[] = { variable
698 for (i = 0; i < ARRAY_SIZE(algs); i++) { in s5p_aes_probe()
699 err = crypto_register_alg(&algs[i]); in s5p_aes_probe()
709 dev_err(dev, "can't register '%s': %d\n", algs[i].cra_name, err); in s5p_aes_probe()
712 crypto_unregister_alg(&algs[j]); in s5p_aes_probe()
732 for (i = 0; i < ARRAY_SIZE(algs); i++) in s5p_aes_remove()
733 crypto_unregister_alg(&algs[i]); in s5p_aes_remove()
Dpicoxcell_crypto.c126 struct spacc_alg *algs; member
1627 engine->algs = ipsec_engine_algs; in spacc_probe()
1636 engine->algs = l2_engine_algs; in spacc_probe()
1724 engine->algs[i].engine = engine; in spacc_probe()
1725 err = crypto_register_alg(&engine->algs[i].alg); in spacc_probe()
1727 list_add_tail(&engine->algs[i].entry, in spacc_probe()
1733 engine->algs[i].alg.cra_name); in spacc_probe()
1736 engine->algs[i].alg.cra_name); in spacc_probe()
Dbfin_crc.c484 static struct ahash_alg algs = { variable
658 ret = crypto_register_ahash(&algs); in bfin_crypto_crc_probe()
693 crypto_unregister_ahash(&algs); in bfin_crypto_crc_remove()
/linux-4.4.14/tools/testing/selftests/zram/
Dzram_lib.sh117 local algs=$(cat /sys/block/zram0/comp_algorithm)
118 echo "supported algs: $algs"
/linux-4.4.14/include/linux/
Dcrypto.h477 int crypto_register_algs(struct crypto_alg *algs, int count);
478 int crypto_unregister_algs(struct crypto_alg *algs, int count);