Lines Matching defs:tfm

260 	struct crypto_ahash *tfm = crypto_ahash_reqtfm(hdev->req);
261 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm);
288 struct crypto_ahash *tfm = crypto_ahash_reqtfm(hdev->req);
289 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm);
311 if (ctx->keylen > crypto_ahash_blocksize(tfm))
589 struct crypto_ahash *tfm = crypto_ahash_reqtfm(hdev->req);
590 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm);
797 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
798 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm);
811 rctx->digcnt = crypto_ahash_digestsize(tfm);
855 rctx->state.blocklen = crypto_ahash_blocksize(tfm) + sizeof(u32);
929 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
939 hashsize = crypto_ahash_digestsize(tfm);
1060 struct stm32_hash_ctx *ctx = crypto_tfm_ctx(req->base.tfm);
1144 static int stm32_hash_setkey(struct crypto_ahash *tfm,
1147 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm);
1159 static int stm32_hash_init_fallback(struct crypto_tfm *tfm)
1161 struct stm32_hash_ctx *ctx = crypto_tfm_ctx(tfm);
1163 const char *name = crypto_tfm_alg_name(tfm);
1182 static int stm32_hash_cra_init_algs(struct crypto_tfm *tfm, u32 algs_flags)
1184 struct stm32_hash_ctx *ctx = crypto_tfm_ctx(tfm);
1186 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
1194 return stm32_hash_init_fallback(tfm);
1197 static int stm32_hash_cra_init(struct crypto_tfm *tfm)
1199 return stm32_hash_cra_init_algs(tfm, 0);
1202 static int stm32_hash_cra_hmac_init(struct crypto_tfm *tfm)
1204 return stm32_hash_cra_init_algs(tfm, HASH_FLAGS_HMAC);
1207 static int stm32_hash_cra_sha3_init(struct crypto_tfm *tfm)
1209 return stm32_hash_cra_init_algs(tfm, HASH_FLAGS_SHA3_MODE);
1212 static int stm32_hash_cra_sha3_hmac_init(struct crypto_tfm *tfm)
1214 return stm32_hash_cra_init_algs(tfm, HASH_FLAGS_SHA3_MODE |
1219 static void stm32_hash_cra_exit(struct crypto_tfm *tfm)
1221 struct stm32_hash_ctx *ctx = crypto_tfm_ctx(tfm);