Lines Matching defs:tfm
489 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
491 struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm);
554 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
555 struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm);
569 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
570 struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm);
583 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
584 struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm);
599 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
600 struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm);
612 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
613 struct img_hash_ctx *ctx = crypto_ahash_ctx(tfm);
624 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req);
625 struct img_hash_ctx *tctx = crypto_ahash_ctx(tfm);
646 ctx->digsize = crypto_ahash_digestsize(tfm);
678 static int img_hash_cra_init(struct crypto_tfm *tfm, const char *alg_name)
680 struct img_hash_ctx *ctx = crypto_tfm_ctx(tfm);
688 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
696 static int img_hash_cra_md5_init(struct crypto_tfm *tfm)
698 return img_hash_cra_init(tfm, "md5-generic");
701 static int img_hash_cra_sha1_init(struct crypto_tfm *tfm)
703 return img_hash_cra_init(tfm, "sha1-generic");
706 static int img_hash_cra_sha224_init(struct crypto_tfm *tfm)
708 return img_hash_cra_init(tfm, "sha224-generic");
711 static int img_hash_cra_sha256_init(struct crypto_tfm *tfm)
713 return img_hash_cra_init(tfm, "sha256-generic");
716 static void img_hash_cra_exit(struct crypto_tfm *tfm)
718 struct img_hash_ctx *tctx = crypto_tfm_ctx(tfm);