Lines Matching refs:base
23 return container_of(tfm, struct crypto_lskcipher, base); in __crypto_lskcipher_cast()
29 return container_of(alg, struct lskcipher_alg, co.base); in __crypto_lskcipher_alg()
177 flags = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP; in crypto_lskcipher_crypt_sg()
179 if (req->base.flags & CRYPTO_SKCIPHER_REQ_CONT) in crypto_lskcipher_crypt_sg()
182 if (!(req->base.flags & CRYPTO_SKCIPHER_REQ_NOTFINAL)) in crypto_lskcipher_crypt_sg()
233 skcipher->base.exit = crypto_lskcipher_exit_tfm; in crypto_lskcipher_init_tfm()
244 container_of(inst, struct lskcipher_instance, s.base); in crypto_lskcipher_free_instance()
296 .tfmsize = offsetof(struct crypto_lskcipher, base),
297 .algsize = offsetof(struct lskcipher_alg, co.base),
332 spawn->base.frontend = &crypto_lskcipher_type; in crypto_grab_lskcipher()
333 return crypto_grab_spawn(&spawn->base, inst, name, type, mask); in crypto_grab_lskcipher()
346 struct crypto_alg *base = &alg->co.base; in lskcipher_prepare_alg() local
356 base->cra_type = &crypto_lskcipher_type; in lskcipher_prepare_alg()
357 base->cra_flags |= CRYPTO_ALG_TYPE_LSKCIPHER; in lskcipher_prepare_alg()
364 struct crypto_alg *base = &alg->co.base; in crypto_register_lskcipher() local
371 return crypto_register_alg(base); in crypto_register_lskcipher()
377 crypto_unregister_alg(&alg->co.base); in crypto_unregister_lskcipher()
529 &cipher_alg->co.base); in lskcipher_alloc_instance_simple()
537 len = strscpy(ecb_name, &cipher_alg->co.base.cra_name[4], in lskcipher_alloc_instance_simple()
548 if (snprintf(inst->alg.co.base.cra_name, CRYPTO_MAX_ALG_NAME, in lskcipher_alloc_instance_simple()
554 snprintf(inst->alg.co.base.cra_driver_name, in lskcipher_alloc_instance_simple()
562 if ((cipher_alg->co.base.cra_flags & CRYPTO_ALG_INSTANCE)) in lskcipher_alloc_instance_simple()
573 inst->alg.co.base.cra_blocksize = cipher_alg->co.base.cra_blocksize; in lskcipher_alloc_instance_simple()
574 inst->alg.co.base.cra_alignmask = cipher_alg->co.base.cra_alignmask; in lskcipher_alloc_instance_simple()
575 inst->alg.co.base.cra_priority = cipher_alg->co.base.cra_priority; in lskcipher_alloc_instance_simple()
578 inst->alg.co.ivsize = cipher_alg->co.base.cra_blocksize; in lskcipher_alloc_instance_simple()
582 inst->alg.co.base.cra_ctxsize = sizeof(struct crypto_lskcipher *); in lskcipher_alloc_instance_simple()