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