Lines Matching defs:tfm
458 static inline int mv_cesa_ahash_cra_init(struct crypto_tfm *tfm)
460 struct mv_cesa_hash_ctx *ctx = crypto_tfm_ctx(tfm);
464 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
1187 struct crypto_ahash *tfm;
1193 tfm = crypto_alloc_ahash(hash_alg_name, 0, 0);
1194 if (IS_ERR(tfm))
1195 return PTR_ERR(tfm);
1197 req = ahash_request_alloc(tfm, GFP_KERNEL);
1203 crypto_ahash_clear_flags(tfm, ~0);
1205 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm));
1230 crypto_free_ahash(tfm);
1235 static int mv_cesa_ahmac_cra_init(struct crypto_tfm *tfm)
1237 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(tfm);
1241 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm),
1248 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(req->base.tfm);
1259 static int mv_cesa_ahmac_md5_setkey(struct crypto_ahash *tfm, const u8 *key,
1262 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm));
1319 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(req->base.tfm);
1330 static int mv_cesa_ahmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key,
1333 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm));
1388 static int mv_cesa_ahmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key,
1391 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm));
1410 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(req->base.tfm);