/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ce/ |
D | sun8i-ce-hash.c | 24 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_crainit() local 29 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash); in sun8i_ce_hash_crainit() 30 op->ce = algt->ce; in sun8i_ce_hash_crainit() 40 dev_err(algt->ce->dev, "Fallback driver could no be loaded\n"); in sun8i_ce_hash_crainit() 44 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ce_hash_crainit() 45 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ce_hash_crainit() 117 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_final() local 126 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash); in sun8i_ce_hash_final() 127 algt->stat_fb++; in sun8i_ce_hash_final() 155 struct sun8i_ce_alg_template *algt; in sun8i_ce_hash_finup() local [all …]
|
D | sun8i-ce-prng.c | 62 struct sun8i_ce_alg_template *algt; in sun8i_ce_prng_generate() local 73 algt = container_of(alg, struct sun8i_ce_alg_template, alg.rng); in sun8i_ce_prng_generate() 74 ce = algt->ce; in sun8i_ce_prng_generate() 95 algt->stat_req++; in sun8i_ce_prng_generate() 96 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() 374 struct sun8i_ce_alg_template *algt; in sun8i_ce_cipher_init() local 382 algt = container_of(alg, struct sun8i_ce_alg_template, alg.skcipher); in sun8i_ce_cipher_init() [all …]
|
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ss/ |
D | sun8i-ss-hash.c | 24 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_crainit() local 29 algt = container_of(alg, struct sun8i_ss_alg_template, alg.hash); in sun8i_ss_hash_crainit() 30 op->ss = algt->ss; in sun8i_ss_hash_crainit() 40 dev_err(algt->ss->dev, "Fallback driver could no be loaded\n"); in sun8i_ss_hash_crainit() 44 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ss_hash_crainit() 45 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ss_hash_crainit() 117 struct sun8i_ss_alg_template *algt; in sun8i_ss_hash_final() local 126 algt = container_of(alg, struct sun8i_ss_alg_template, alg.hash); in sun8i_ss_hash_final() 127 algt->stat_fb++; in sun8i_ss_hash_final() 155 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() 324 struct sun8i_ss_alg_template *algt; in sun8i_ss_cipher_init() local 332 algt = container_of(alg, struct sun8i_ss_alg_template, alg.skcipher); in sun8i_ss_cipher_init() [all …]
|
D | sun8i-ss-prng.c | 62 struct sun8i_ss_alg_template *algt; in sun8i_ss_prng_generate() local 71 algt = container_of(alg, struct sun8i_ss_alg_template, alg.rng); in sun8i_ss_prng_generate() 72 ss = algt->ss; in sun8i_ss_prng_generate() 93 algt->stat_req++; in sun8i_ss_prng_generate() 94 algt->stat_bytes += todo; in sun8i_ss_prng_generate()
|
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun4i-ss/ |
D | sun4i-ss-prng.c | 6 struct sun4i_ss_alg_template *algt; in sun4i_ss_prng_seed() local 9 algt = container_of(alg, struct sun4i_ss_alg_template, alg.rng); in sun4i_ss_prng_seed() 10 memcpy(algt->ss->seed, seed, slen); in sun4i_ss_prng_seed() 18 struct sun4i_ss_alg_template *algt; in sun4i_ss_prng_generate() local 28 algt = container_of(alg, struct sun4i_ss_alg_template, alg.rng); in sun4i_ss_prng_generate() 29 ss = algt->ss; in sun4i_ss_prng_generate()
|
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()
|
D | sun4i-ss-cipher.c | 176 struct sun4i_ss_alg_template *algt; in sun4i_ss_cipher_poll() local 207 algt = container_of(alg, struct sun4i_ss_alg_template, alg.crypto); in sun4i_ss_cipher_poll() 208 if (areq->cryptlen % algt->alg.crypto.base.cra_blocksize) in sun4i_ss_cipher_poll() 524 struct sun4i_ss_alg_template *algt; in sun4i_ss_cipher_init() local 530 algt = container_of(tfm->__crt_alg, struct sun4i_ss_alg_template, in sun4i_ss_cipher_init() 532 op->ss = algt->ss; in sun4i_ss_cipher_init()
|
/kernel/linux/linux-5.10/crypto/ |
D | pcrypt.c | 233 struct crypto_attr_type *algt) in pcrypt_create_aead() argument 238 u32 mask = crypto_algt_inherited_mask(algt); in pcrypt_create_aead() 293 struct crypto_attr_type *algt; in pcrypt_create() local 295 algt = crypto_get_attr_type(tb); in pcrypt_create() 296 if (IS_ERR(algt)) in pcrypt_create() 297 return PTR_ERR(algt); in pcrypt_create() 299 switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { in pcrypt_create() 301 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 | 439 struct crypto_attr_type *algt; in essiv_create() local 456 algt = crypto_get_attr_type(tb); in essiv_create() 457 if (IS_ERR(algt)) in essiv_create() 458 return PTR_ERR(algt); in essiv_create() 468 type = algt->type & algt->mask; in essiv_create() 469 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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/include/crypto/ |
D | algapi.h | 238 static inline u32 crypto_requires_off(struct crypto_attr_type *algt, u32 off) in crypto_requires_off() argument 240 return (algt->type ^ off) & algt->mask & off; in crypto_requires_off() 258 static inline u32 crypto_algt_inherited_mask(struct crypto_attr_type *algt) in crypto_algt_inherited_mask() argument 260 return crypto_requires_off(algt, CRYPTO_ALG_INHERITED_FLAGS); in crypto_algt_inherited_mask()
|
/kernel/linux/linux-5.10/drivers/crypto/ |
D | talitos.c | 3043 struct talitos_alg_template algt; member 3060 ctx->desc_hdr_template = talitos_alg->algt.desc_hdr_template; in talitos_init_common() 3075 algt.alg.aead); in talitos_cra_init_aead() 3087 algt.alg.skcipher); in talitos_cra_init_skcipher() 3100 algt.alg.hash); in talitos_cra_init_ahash() 3146 switch (t_alg->algt.type) { in talitos_remove() 3148 crypto_unregister_skcipher(&t_alg->algt.alg.skcipher); in talitos_remove() 3151 crypto_unregister_aead(&t_alg->algt.alg.aead); in talitos_remove() 3154 crypto_unregister_ahash(&t_alg->algt.alg.hash); in talitos_remove() 3189 t_alg->algt = *template; in talitos_alg_alloc() [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/ |
D | 0003_linux_crypto.patch | 1166 + struct crypto_attr_type *algt; 1175 + algt = crypto_get_attr_type(tb); 1176 + if (IS_ERR(algt)) 1177 + return PTR_ERR(algt); 1179 + if ((algt->type ^ CRYPTO_ALG_TYPE_AEAD) & algt->mask)
|