Lines Matching refs:tfm
434 static inline int mv_cesa_ahash_cra_init(struct crypto_tfm *tfm) in mv_cesa_ahash_cra_init() argument
436 struct mv_cesa_hash_ctx *ctx = crypto_tfm_ctx(tfm); in mv_cesa_ahash_cra_init()
440 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in mv_cesa_ahash_cra_init()
1152 struct crypto_ahash *tfm; in mv_cesa_ahmac_setkey() local
1158 tfm = crypto_alloc_ahash(hash_alg_name, CRYPTO_ALG_TYPE_AHASH, in mv_cesa_ahmac_setkey()
1160 if (IS_ERR(tfm)) in mv_cesa_ahmac_setkey()
1161 return PTR_ERR(tfm); in mv_cesa_ahmac_setkey()
1163 req = ahash_request_alloc(tfm, GFP_KERNEL); in mv_cesa_ahmac_setkey()
1169 crypto_ahash_clear_flags(tfm, ~0); in mv_cesa_ahmac_setkey()
1171 blocksize = crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in mv_cesa_ahmac_setkey()
1196 crypto_free_ahash(tfm); in mv_cesa_ahmac_setkey()
1201 static int mv_cesa_ahmac_cra_init(struct crypto_tfm *tfm) in mv_cesa_ahmac_cra_init() argument
1203 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(tfm); in mv_cesa_ahmac_cra_init()
1207 crypto_ahash_set_reqsize(__crypto_ahash_cast(tfm), in mv_cesa_ahmac_cra_init()
1214 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_cesa_ahmac_md5_init()
1225 static int mv_cesa_ahmac_md5_setkey(struct crypto_ahash *tfm, const u8 *key, in mv_cesa_ahmac_md5_setkey() argument
1228 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in mv_cesa_ahmac_md5_setkey()
1284 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_cesa_ahmac_sha1_init()
1295 static int mv_cesa_ahmac_sha1_setkey(struct crypto_ahash *tfm, const u8 *key, in mv_cesa_ahmac_sha1_setkey() argument
1298 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in mv_cesa_ahmac_sha1_setkey()
1352 static int mv_cesa_ahmac_sha256_setkey(struct crypto_ahash *tfm, const u8 *key, in mv_cesa_ahmac_sha256_setkey() argument
1355 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in mv_cesa_ahmac_sha256_setkey()
1374 struct mv_cesa_hmac_ctx *ctx = crypto_tfm_ctx(req->base.tfm); in mv_cesa_ahmac_sha256_init()