Lines Matching refs:tfm
216 static int mv_cesa_ablkcipher_cra_init(struct crypto_tfm *tfm) in mv_cesa_ablkcipher_cra_init() argument
218 struct mv_cesa_aes_ctx *ctx = crypto_tfm_ctx(tfm); in mv_cesa_ablkcipher_cra_init()
222 tfm->crt_ablkcipher.reqsize = sizeof(struct mv_cesa_ablkcipher_req); in mv_cesa_ablkcipher_cra_init()
230 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_cesa_aes_setkey() local
231 struct mv_cesa_aes_ctx *ctx = crypto_tfm_ctx(tfm); in mv_cesa_aes_setkey()
255 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_cesa_des_setkey() local
256 struct mv_cesa_des_ctx *ctx = crypto_tfm_ctx(tfm); in mv_cesa_des_setkey()
266 if (!ret && (tfm->crt_flags & CRYPTO_TFM_REQ_WEAK_KEY)) { in mv_cesa_des_setkey()
267 tfm->crt_flags |= CRYPTO_TFM_RES_WEAK_KEY; in mv_cesa_des_setkey()
279 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in mv_cesa_des3_ede_setkey() local
280 struct mv_cesa_des_ctx *ctx = crypto_tfm_ctx(tfm); in mv_cesa_des3_ede_setkey()
396 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in mv_cesa_ablkcipher_req_init() local
397 unsigned int blksize = crypto_ablkcipher_blocksize(tfm); in mv_cesa_ablkcipher_req_init()
421 struct mv_cesa_des_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_cesa_des_op()
541 struct mv_cesa_des3_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_cesa_des3_op()
667 struct mv_cesa_aes_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_cesa_aes_op()