Lines Matching refs:tfm

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