Lines Matching defs:tfm
79 * @tfm: transform state of cipher algorithm.
98 __le32 tfm[2];
279 cmd->tfm = cpu_to_le32(aes->ctx->tfm_dma);
409 info->tfm[0] = AES_TFM_SIZE(ctx->keylen) | ctx->keymode;
411 info->tfm[0] |= AES_TFM_BASIC_OUT;
413 info->tfm[0] |= AES_TFM_BASIC_IN;
417 info->tfm[1] = AES_TFM_CBC;
420 info->tfm[1] = AES_TFM_ECB;
423 info->tfm[1] = AES_TFM_CTR_LOAD;
426 info->tfm[1] = AES_TFM_OFB;
429 info->tfm[1] = AES_TFM_CFB128;
438 le32_add_cpu(&info->tfm[0],
440 info->tfm[1] |= AES_TFM_FULL_IV;
520 ctx = crypto_tfm_ctx(areq->tfm);
619 static int mtk_aes_setkey(struct crypto_skcipher *tfm,
622 struct mtk_aes_base_ctx *ctx = crypto_skcipher_ctx(tfm);
713 static int mtk_aes_init_tfm(struct crypto_skcipher *tfm)
715 struct mtk_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
717 crypto_skcipher_set_reqsize(tfm, sizeof(struct mtk_aes_reqctx));
722 static int mtk_aes_ctr_init_tfm(struct crypto_skcipher *tfm)
724 struct mtk_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
726 crypto_skcipher_set_reqsize(tfm, sizeof(struct mtk_aes_reqctx));
861 info->tfm[0] = AES_TFM_GCM_OUT;
865 info->tfm[0] = AES_TFM_GCM_IN;
869 info->tfm[0] |= AES_TFM_GHASH_DIGEST | AES_TFM_GHASH | AES_TFM_SIZE(
872 info->tfm[1] = AES_TFM_CTR_INIT | AES_TFM_IV_CTR_MODE | AES_TFM_3IV |