Lines Matching refs:tfm
75 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in crypto4xx_encrypt()
89 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in crypto4xx_decrypt()
110 struct crypto_tfm *tfm = crypto_ablkcipher_tfm(cipher); in crypto4xx_setkey_aes() local
111 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm); in crypto4xx_setkey_aes()
180 static int crypto4xx_hash_alg_init(struct crypto_tfm *tfm, in crypto4xx_hash_alg_init() argument
185 struct crypto_alg *alg = tfm->__crt_alg; in crypto4xx_hash_alg_init()
187 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(tfm); in crypto4xx_hash_alg_init()
212 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in crypto4xx_hash_alg_init()
239 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in crypto4xx_hash_init()
245 __crypto_ahash_cast(req->base.tfm)); in crypto4xx_hash_init()
256 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in crypto4xx_hash_update()
275 struct crypto4xx_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in crypto4xx_hash_digest()
289 int crypto4xx_sha1_alg_init(struct crypto_tfm *tfm) in crypto4xx_sha1_alg_init() argument
291 return crypto4xx_hash_alg_init(tfm, SA_HASH160_LEN, SA_HASH_ALG_SHA1, in crypto4xx_sha1_alg_init()