Home
last modified time | relevance | path

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

12

/linux/crypto/
H A Dsimd.c207 int simd_register_skciphers_compat(struct skcipher_alg *algs, int count, in simd_register_skciphers_compat() argument
217 err = crypto_register_skciphers(algs, count); in simd_register_skciphers_compat()
222 WARN_ON(strncmp(algs[i].base.cra_name, "__", 2)); in simd_register_skciphers_compat()
223 WARN_ON(strncmp(algs[i].base.cra_driver_name, "__", 2)); in simd_register_skciphers_compat()
224 algname = algs[i].base.cra_name + 2; in simd_register_skciphers_compat()
225 drvname = algs[i].base.cra_driver_name + 2; in simd_register_skciphers_compat()
226 basename = algs[i].base.cra_driver_name; in simd_register_skciphers_compat()
227 simd = simd_skcipher_create_compat(algs + i, algname, drvname, basename); in simd_register_skciphers_compat()
236 simd_unregister_skciphers(algs, count, simd_algs); in simd_register_skciphers_compat()
241 void simd_unregister_skciphers(struct skcipher_alg *algs, int count, in simd_unregister_skciphers() argument
[all …]
H A Dcrypto_engine.c585 int crypto_engine_register_aeads(struct aead_engine_alg *algs, int count) in crypto_engine_register_aeads() argument
590 ret = crypto_engine_register_aead(&algs[i]); in crypto_engine_register_aeads()
598 crypto_engine_unregister_aeads(algs, i); in crypto_engine_register_aeads()
604 void crypto_engine_unregister_aeads(struct aead_engine_alg *algs, int count) in crypto_engine_unregister_aeads() argument
609 crypto_engine_unregister_aead(&algs[i]); in crypto_engine_unregister_aeads()
630 int crypto_engine_register_ahashes(struct ahash_engine_alg *algs, int count) in crypto_engine_register_ahashes() argument
635 ret = crypto_engine_register_ahash(&algs[i]); in crypto_engine_register_ahashes()
643 crypto_engine_unregister_ahashes(algs, i); in crypto_engine_register_ahashes()
649 void crypto_engine_unregister_ahashes(struct ahash_engine_alg *algs, in crypto_engine_unregister_ahashes() argument
655 crypto_engine_unregister_ahash(&algs[i]); in crypto_engine_unregister_ahashes()
[all …]
H A Dchacha_generic.c69 static struct skcipher_alg algs[] = { variable
120 return crypto_register_skciphers(algs, ARRAY_SIZE(algs)); in chacha_generic_mod_init()
125 crypto_unregister_skciphers(algs, ARRAY_SIZE(algs)); in chacha_generic_mod_fini()
H A Drng.c191 int crypto_register_rngs(struct rng_alg *algs, int count) in crypto_register_rngs() argument
196 ret = crypto_register_rng(algs + i); in crypto_register_rngs()
205 crypto_unregister_rng(algs + i); in crypto_register_rngs()
211 void crypto_unregister_rngs(struct rng_alg *algs, int count) in crypto_unregister_rngs() argument
216 crypto_unregister_rng(algs + i); in crypto_unregister_rngs()
H A Dacompress.c182 int crypto_register_acomps(struct acomp_alg *algs, int count) in crypto_register_acomps() argument
187 ret = crypto_register_acomp(&algs[i]); in crypto_register_acomps()
196 crypto_unregister_acomp(&algs[i]); in crypto_register_acomps()
202 void crypto_unregister_acomps(struct acomp_alg *algs, int count) in crypto_unregister_acomps() argument
207 crypto_unregister_acomp(&algs[i]); in crypto_unregister_acomps()
H A Daead.c248 int crypto_register_aeads(struct aead_alg *algs, int count) in crypto_register_aeads() argument
253 ret = crypto_register_aead(&algs[i]); in crypto_register_aeads()
262 crypto_unregister_aead(&algs[i]); in crypto_register_aeads()
268 void crypto_unregister_aeads(struct aead_alg *algs, int count) in crypto_unregister_aeads() argument
273 crypto_unregister_aead(&algs[i]); in crypto_unregister_aeads()
H A Dscompress.c299 int crypto_register_scomps(struct scomp_alg *algs, int count) in crypto_register_scomps() argument
304 ret = crypto_register_scomp(&algs[i]); in crypto_register_scomps()
313 crypto_unregister_scomp(&algs[i]); in crypto_register_scomps()
319 void crypto_unregister_scomps(struct scomp_alg *algs, int count) in crypto_unregister_scomps() argument
324 crypto_unregister_scomp(&algs[i]); in crypto_unregister_scomps()
H A Dsha3_generic.c240 static struct shash_alg algs[] = { { variable
284 return crypto_register_shashes(algs, ARRAY_SIZE(algs)); in sha3_generic_mod_init()
289 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha3_generic_mod_fini()
/linux/arch/arm/crypto/
H A Dsha256_glue.c54 static struct shash_alg algs[] = { { variable
86 int res = crypto_register_shashes(algs, ARRAY_SIZE(algs)); in sha256_mod_init()
96 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha256_mod_init()
104 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha256_mod_fini()
H A Dsha2-ce-glue.c68 static struct shash_alg algs[] = { { variable
100 return crypto_register_shashes(algs, ARRAY_SIZE(algs)); in sha2_ce_mod_init()
105 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha2_ce_mod_fini()
/linux/include/crypto/
H A Dengine.h85 int crypto_engine_register_aeads(struct aead_engine_alg *algs, int count);
86 void crypto_engine_unregister_aeads(struct aead_engine_alg *algs, int count);
90 int crypto_engine_register_ahashes(struct ahash_engine_alg *algs, int count);
91 void crypto_engine_unregister_ahashes(struct ahash_engine_alg *algs,
102 int crypto_engine_register_skciphers(struct skcipher_engine_alg *algs,
104 void crypto_engine_unregister_skciphers(struct skcipher_engine_alg *algs,
/linux/arch/arm64/crypto/
H A Dsha256-glue.c66 static struct shash_alg algs[] = { { variable
174 int ret = crypto_register_shashes(algs, ARRAY_SIZE(algs)); in sha256_mod_init()
181 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha256_mod_init()
190 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha256_mod_fini()
H A Dsha512-glue.c53 static struct shash_alg algs[] = { { variable
81 return crypto_register_shashes(algs, ARRAY_SIZE(algs)); in sha512_mod_init()
86 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha512_mod_fini()
H A Dsha512-ce-glue.c84 static struct shash_alg algs[] = { { variable
112 return crypto_register_shashes(algs, ARRAY_SIZE(algs)); in sha512_ce_mod_init()
117 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha512_ce_mod_fini()
H A Dsha3-ce-glue.c109 static struct shash_alg algs[] = { { variable
157 return crypto_register_shashes(algs, ARRAY_SIZE(algs)); in sha3_neon_mod_init()
162 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha3_neon_mod_fini()
H A Dsha2-ce-glue.c144 static struct shash_alg algs[] = { { variable
183 return crypto_register_shashes(algs, ARRAY_SIZE(algs)); in sha2_ce_mod_init()
188 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in sha2_ce_mod_fini()
H A Dchacha-neon-glue.c163 static struct skcipher_alg algs[] = { variable
223 crypto_register_skciphers(algs, ARRAY_SIZE(algs)) : 0; in chacha_simd_mod_init()
229 crypto_unregister_skciphers(algs, ARRAY_SIZE(algs)); in chacha_simd_mod_fini()
/linux/include/crypto/internal/
H A Dsimd.h23 int simd_register_skciphers_compat(struct skcipher_alg *algs, int count,
26 void simd_unregister_skciphers(struct skcipher_alg *algs, int count,
34 int simd_register_aeads_compat(struct aead_alg *algs, int count,
37 void simd_unregister_aeads(struct aead_alg *algs, int count,
H A Dhash.h71 int crypto_register_ahashes(struct ahash_alg *algs, int count);
72 void crypto_unregister_ahashes(struct ahash_alg *algs, int count);
107 int crypto_register_shashes(struct shash_alg *algs, int count);
108 void crypto_unregister_shashes(struct shash_alg *algs, int count);
H A Drng.h17 int crypto_register_rngs(struct rng_alg *algs, int count);
18 void crypto_unregister_rngs(struct rng_alg *algs, int count);
H A Dskcipher.h196 int crypto_register_skciphers(struct skcipher_alg *algs, int count);
197 void crypto_unregister_skciphers(struct skcipher_alg *algs, int count);
203 int crypto_register_lskciphers(struct lskcipher_alg *algs, int count);
204 void crypto_unregister_lskciphers(struct lskcipher_alg *algs, int count);
/linux/arch/mips/crypto/
H A Dchacha-glue.c80 static struct skcipher_alg algs[] = { variable
132 crypto_register_skciphers(algs, ARRAY_SIZE(algs)) : 0; in chacha_simd_mod_init()
138 crypto_unregister_skciphers(algs, ARRAY_SIZE(algs)); in chacha_simd_mod_fini()
/linux/arch/powerpc/crypto/
H A Dsha256-spe-glue.c182 static struct shash_alg algs[2] = { { variable
218 return crypto_register_shashes(algs, ARRAY_SIZE(algs)); in ppc_spe_sha256_mod_init()
223 crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); in ppc_spe_sha256_mod_fini()
H A Dchacha-p10-glue.c149 static struct skcipher_alg algs[] = { variable
205 return crypto_register_skciphers(algs, ARRAY_SIZE(algs)); in chacha_p10_init()
213 crypto_unregister_skciphers(algs, ARRAY_SIZE(algs)); in chacha_p10_exit()
/linux/net/xfrm/
H A Dxfrm_algo.c649 struct xfrm_algo_desc *algs; member
655 .algs = aead_list,
661 .algs = aalg_list,
667 .algs = ealg_list,
673 .algs = calg_list,
682 struct xfrm_algo_desc *list = algo_list->algs; in xfrm_find_algo()

12