/Linux-v5.15/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-hash.c | 25 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_crainit() local 30 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash); in sun8i_ce_hash_crainit() 31 op->ce = algt->ce; in sun8i_ce_hash_crainit() 41 dev_err(algt->ce->dev, "Fallback driver could no be loaded\n"); in sun8i_ce_hash_crainit() 45 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ce_hash_crainit() 46 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ce_hash_crainit() 118 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_final() local 127 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash); in sun8i_ce_hash_final() 128 algt->stat_fb++; in sun8i_ce_hash_final() 156 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_finup() local [all …]
|
D | sun8i-ce-prng.c | 60 struct sun8i_ce_alg_template *algt; in sun8i_ce_prng_generate() local 71 algt = container_of(alg, struct sun8i_ce_alg_template, alg.rng); in sun8i_ce_prng_generate() 72 ce = algt->ce; in sun8i_ce_prng_generate() 93 algt->stat_req++; in sun8i_ce_prng_generate() 94 algt->stat_bytes += todo; in sun8i_ce_prng_generate()
|
D | sun8i-ce-cipher.c | 60 struct sun8i_ce_alg_template *algt; in sun8i_ce_cipher_fallback() local 62 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher); in sun8i_ce_cipher_fallback() 63 algt->stat_fb++; in sun8i_ce_cipher_fallback() 86 struct sun8i_ce_alg_template *algt; in sun8i_ce_cipher_prepare() local 97 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher); in sun8i_ce_cipher_prepare() 106 algt->stat_req++; in sun8i_ce_cipher_prepare() 117 common = ce->variant->alg_cipher[algt->ce_algo_id]; in sun8i_ce_cipher_prepare() 126 sym = ce->variant->op_mode[algt->ce_blockmode]; in sun8i_ce_cipher_prepare() 377 struct sun8i_ce_alg_template *algt; in sun8i_ce_cipher_init() local 385 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher); in sun8i_ce_cipher_init() [all …]
|
/Linux-v5.15/drivers/crypto/allwinner/sun4i-ss/ |
D | sun4i-ss-prng.c | 7 struct sun4i_ss_alg_template *algt; in sun4i_ss_prng_seed() local 10 algt = container_of(alg, struct sun4i_ss_alg_template, alg.rng); in sun4i_ss_prng_seed() 11 memcpy(algt->ss->seed, seed, slen); in sun4i_ss_prng_seed() 19 struct sun4i_ss_alg_template *algt; in sun4i_ss_prng_generate() local 29 algt = container_of(alg, struct sun4i_ss_alg_template, alg.rng); in sun4i_ss_prng_generate() 30 ss = algt->ss; in sun4i_ss_prng_generate() 37 algt->stat_req++; in sun4i_ss_prng_generate() 38 algt->stat_bytes += todo; in sun4i_ss_prng_generate()
|
D | sun4i-ss-cipher.c | 40 struct sun4i_ss_alg_template *algt; in sun4i_ss_opti_poll() local 58 algt = container_of(alg, struct sun4i_ss_alg_template, alg.crypto); in sun4i_ss_opti_poll() 59 algt->stat_opti++; in sun4i_ss_opti_poll() 60 algt->stat_bytes += areq->cryptlen; in sun4i_ss_opti_poll() 158 struct sun4i_ss_alg_template *algt; in sun4i_ss_cipher_poll_fallback() local 161 algt = container_of(alg, struct sun4i_ss_alg_template, alg.crypto); in sun4i_ss_cipher_poll_fallback() 162 algt->stat_fb++; in sun4i_ss_cipher_poll_fallback() 190 struct sun4i_ss_alg_template *algt; in sun4i_ss_cipher_poll() local 221 algt = container_of(alg, struct sun4i_ss_alg_template, alg.crypto); in sun4i_ss_cipher_poll() 222 if (areq->cryptlen % algt->alg.crypto.base.cra_blocksize) in sun4i_ss_cipher_poll() [all …]
|
D | sun4i-ss-hash.c | 22 struct sun4i_ss_alg_template *algt; in sun4i_hash_crainit() local 27 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); in sun4i_hash_crainit() 28 op->ss = algt->ss; in sun4i_hash_crainit() 52 struct sun4i_ss_alg_template *algt; in sun4i_hash_init() local 56 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); in sun4i_hash_init() 57 op->mode = algt->mode; in sun4i_hash_init() 197 struct sun4i_ss_alg_template *algt; in sun4i_hash() local 404 algt = container_of(alg, struct sun4i_ss_alg_template, alg.hash); in sun4i_hash() 405 algt->stat_req++; in sun4i_hash()
|
/Linux-v5.15/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-hash.c | 25 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_crainit() local 30 algt = container_of(alg, struct sun8i_ss_alg_template, alg.hash); in sun8i_ss_hash_crainit() 31 op->ss = algt->ss; in sun8i_ss_hash_crainit() 41 dev_err(algt->ss->dev, "Fallback driver could no be loaded\n"); in sun8i_ss_hash_crainit() 45 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ss_hash_crainit() 46 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ss_hash_crainit() 118 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_final() local 127 algt = container_of(alg, struct sun8i_ss_alg_template, alg.hash); in sun8i_ss_hash_final() 128 algt->stat_fb++; in sun8i_ss_hash_final() 156 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_finup() local [all …]
|
D | sun8i-ss-cipher.c | 78 struct sun8i_ss_alg_template *algt; in sun8i_ss_cipher_fallback() local 80 algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher); in sun8i_ss_cipher_fallback() 81 algt->stat_fb++; in sun8i_ss_cipher_fallback() 102 struct sun8i_ss_alg_template *algt; in sun8i_ss_cipher() local 111 algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher); in sun8i_ss_cipher() 120 algt->stat_req++; in sun8i_ss_cipher() 123 rctx->op_mode = ss->variant->op_mode[algt->ss_blockmode]; in sun8i_ss_cipher() 124 rctx->method = ss->variant->alg_cipher[algt->ss_algo_id]; in sun8i_ss_cipher() 327 struct sun8i_ss_alg_template *algt; in sun8i_ss_cipher_init() local 335 algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher); in sun8i_ss_cipher_init() [all …]
|
D | sun8i-ss-prng.c | 60 struct sun8i_ss_alg_template *algt; in sun8i_ss_prng_generate() local 69 algt = container_of(alg, struct sun8i_ss_alg_template, alg.rng); in sun8i_ss_prng_generate() 70 ss = algt->ss; in sun8i_ss_prng_generate() 91 algt->stat_req++; in sun8i_ss_prng_generate() 92 algt->stat_bytes += todo; in sun8i_ss_prng_generate()
|
/Linux-v5.15/crypto/ |
D | pcrypt.c | 229 struct crypto_attr_type *algt) in pcrypt_create_aead() argument 234 u32 mask = crypto_algt_inherited_mask(algt); in pcrypt_create_aead() 289 struct crypto_attr_type *algt; in pcrypt_create() local 291 algt = crypto_get_attr_type(tb); in pcrypt_create() 292 if (IS_ERR(algt)) in pcrypt_create() 293 return PTR_ERR(algt); in pcrypt_create() 295 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_create() 297 return pcrypt_create_aead(tmpl, tb, algt); in pcrypt_create()
|
D | cryptd.c | 194 static void cryptd_type_and_mask(struct crypto_attr_type *algt, in cryptd_type_and_mask() argument 201 *type = algt->type & CRYPTO_ALG_INTERNAL; in cryptd_type_and_mask() 202 *mask = algt->mask & CRYPTO_ALG_INTERNAL; in cryptd_type_and_mask() 207 *mask |= crypto_algt_inherited_mask(algt); in cryptd_type_and_mask() 370 struct crypto_attr_type *algt, in cryptd_create_skcipher() argument 380 cryptd_type_and_mask(algt, &type, &mask); in cryptd_create_skcipher() 636 struct crypto_attr_type *algt, in cryptd_create_hash() argument 646 cryptd_type_and_mask(algt, &type, &mask); in cryptd_create_hash() 823 struct crypto_attr_type *algt, in cryptd_create_aead() argument 833 cryptd_type_and_mask(algt, &type, &mask); in cryptd_create_aead() [all …]
|
D | essiv.c | 440 struct crypto_attr_type *algt; in essiv_create() local 457 algt = crypto_get_attr_type(tb); in essiv_create() 458 if (IS_ERR(algt)) in essiv_create() 459 return PTR_ERR(algt); in essiv_create() 469 type = algt->type & algt->mask; in essiv_create() 470 mask = crypto_algt_inherited_mask(algt); in essiv_create()
|
D | algapi.c | 806 struct crypto_attr_type *algt; in crypto_get_attr_type() local 810 if (RTA_PAYLOAD(rta) < sizeof(*algt)) in crypto_get_attr_type() 815 algt = RTA_DATA(rta); in crypto_get_attr_type() 817 return algt; in crypto_get_attr_type() 839 struct crypto_attr_type *algt; in crypto_check_attr_type() local 841 algt = crypto_get_attr_type(tb); in crypto_check_attr_type() 842 if (IS_ERR(algt)) in crypto_check_attr_type() 843 return PTR_ERR(algt); in crypto_check_attr_type() 845 if ((algt->type ^ type) & algt->mask) in crypto_check_attr_type() 848 *mask_ret = crypto_algt_inherited_mask(algt); in crypto_check_attr_type()
|
/Linux-v5.15/drivers/crypto/amlogic/ |
D | amlogic-gxl-cipher.c | 66 struct meson_alg_template *algt; in meson_cipher_do_fallback() local 68 algt = container_of(alg, struct meson_alg_template, alg.skcipher); in meson_cipher_do_fallback() 69 algt->stat_fb++; in meson_cipher_do_fallback() 91 struct meson_alg_template *algt; in meson_cipher() local 104 algt = container_of(alg, struct meson_alg_template, alg.skcipher); in meson_cipher() 113 algt->stat_req++; in meson_cipher() 213 v = (op->keymode << 20) | DESC_OWN | todo | (algt->blockmode << 26); in meson_cipher() 312 struct meson_alg_template *algt; in meson_cipher_init() local 319 algt = container_of(alg, struct meson_alg_template, alg.skcipher); in meson_cipher_init() 320 op->mc = algt->mc; in meson_cipher_init()
|
/Linux-v5.15/drivers/crypto/gemini/ |
D | sl3516-ce-cipher.c | 105 struct sl3516_ce_alg_template *algt; in sl3516_ce_cipher_fallback() local 108 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher); in sl3516_ce_cipher_fallback() 109 algt->stat_fb++; in sl3516_ce_cipher_fallback() 130 struct sl3516_ce_alg_template *algt; in sl3516_ce_cipher() local 139 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher); in sl3516_ce_cipher() 147 algt->stat_req++; in sl3516_ce_cipher() 220 switch (algt->mode) { in sl3516_ce_cipher() 311 struct sl3516_ce_alg_template *algt; in sl3516_ce_cipher_init() local 319 algt = container_of(alg, struct sl3516_ce_alg_template, alg.skcipher); in sl3516_ce_cipher_init() 320 op->ce = algt->ce; in sl3516_ce_cipher_init()
|
/Linux-v5.15/include/crypto/ |
D | algapi.h | 207 static inline u32 crypto_requires_off(struct crypto_attr_type *algt, u32 off) in crypto_requires_off() argument 209 return (algt->type ^ off) & algt->mask & off; in crypto_requires_off() 227 static inline u32 crypto_algt_inherited_mask(struct crypto_attr_type *algt) in crypto_algt_inherited_mask() argument 229 return crypto_requires_off(algt, CRYPTO_ALG_INHERITED_FLAGS); in crypto_algt_inherited_mask()
|
/Linux-v5.15/drivers/crypto/ |
D | talitos.c | 3044 struct talitos_alg_template algt; member 3061 ctx->desc_hdr_template = talitos_alg->algt.desc_hdr_template; in talitos_init_common() 3076 algt.alg.aead); in talitos_cra_init_aead() 3088 algt.alg.skcipher); in talitos_cra_init_skcipher() 3101 algt.alg.hash); in talitos_cra_init_ahash() 3147 switch (t_alg->algt.type) { in talitos_remove() 3149 crypto_unregister_skcipher(&t_alg->algt.alg.skcipher); in talitos_remove() 3152 crypto_unregister_aead(&t_alg->algt.alg.aead); in talitos_remove() 3155 crypto_unregister_ahash(&t_alg->algt.alg.hash); in talitos_remove() 3190 t_alg->algt = *template; in talitos_alg_alloc() [all …]
|
/Linux-v5.15/drivers/crypto/rockchip/ |
D | rk3288_crypto_ahash.c | 276 struct rk_crypto_tmp *algt; in rk_cra_hash_init() local 281 algt = container_of(alg, struct rk_crypto_tmp, alg.hash); in rk_cra_hash_init() 283 tctx->dev = algt->dev; in rk_cra_hash_init()
|
D | rk3288_crypto_skcipher.c | 381 struct rk_crypto_tmp *algt; in rk_ablk_init_tfm() local 383 algt = container_of(alg, struct rk_crypto_tmp, alg.skcipher); in rk_ablk_init_tfm() 385 ctx->dev = algt->dev; in rk_ablk_init_tfm()
|