Lines Matching defs:tfm

275 	struct crypto_ahash *tfm = crypto_ahash_reqtfm(hdev->req);
276 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm);
308 struct crypto_ahash *tfm = crypto_ahash_reqtfm(hdev->req);
309 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm);
331 if (ctx->keylen > crypto_ahash_blocksize(tfm))
594 struct crypto_ahash *tfm = crypto_ahash_reqtfm(hdev->req);
595 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm);
815 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
816 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm);
831 rctx->digcnt = crypto_ahash_digestsize(tfm);
875 rctx->state.blocklen = crypto_ahash_blocksize(tfm) + sizeof(u32);
958 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
968 hashsize = crypto_ahash_digestsize(tfm);
1255 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
1256 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm);
1270 bs = crypto_ahash_blocksize(tfm);
1383 struct stm32_hash_ctx *ctx = crypto_tfm_ctx(req->base.tfm);
1475 static int stm32_hash_setkey(struct crypto_ahash *tfm,
1478 struct stm32_hash_ctx *ctx = crypto_ahash_ctx(tfm);
1490 static int stm32_hash_init_fallback(struct crypto_tfm *tfm)
1492 struct stm32_hash_ctx *ctx = crypto_tfm_ctx(tfm);
1494 const char *name = crypto_tfm_alg_name(tfm);
1513 static int stm32_hash_cra_init_algs(struct crypto_tfm *tfm, u32 algs_flags)
1515 struct stm32_hash_ctx *ctx = crypto_tfm_ctx(tfm);
1517 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
1525 return stm32_hash_init_fallback(tfm);
1528 static int stm32_hash_cra_init(struct crypto_tfm *tfm)
1530 return stm32_hash_cra_init_algs(tfm, 0);
1533 static int stm32_hash_cra_hmac_init(struct crypto_tfm *tfm)
1535 return stm32_hash_cra_init_algs(tfm, HASH_FLAGS_HMAC);
1538 static int stm32_hash_cra_sha3_init(struct crypto_tfm *tfm)
1540 return stm32_hash_cra_init_algs(tfm, HASH_FLAGS_SHA3_MODE);
1543 static int stm32_hash_cra_sha3_hmac_init(struct crypto_tfm *tfm)
1545 return stm32_hash_cra_init_algs(tfm, HASH_FLAGS_SHA3_MODE |
1549 static void stm32_hash_cra_exit(struct crypto_tfm *tfm)
1551 struct stm32_hash_ctx *ctx = crypto_tfm_ctx(tfm);