Lines Matching refs:tfm
29 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_complete() local
31 unsigned int digest_size = crypto_ahash_digestsize(tfm); in ccp_sha_complete()
60 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_do_sha_update() local
61 struct ccp_ctx *ctx = crypto_ahash_ctx(tfm); in ccp_do_sha_update()
65 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in ccp_do_sha_update()
162 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_init() local
163 struct ccp_ctx *ctx = crypto_ahash_ctx(tfm); in ccp_sha_init()
166 ccp_crypto_ahash_alg(crypto_ahash_tfm(tfm)); in ccp_sha_init()
168 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in ccp_sha_init()
250 static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_sha_setkey() argument
253 struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in ccp_sha_setkey()
272 sdesc->tfm = shash; in ccp_sha_setkey()
273 sdesc->flags = crypto_ahash_get_flags(tfm) & in ccp_sha_setkey()
279 crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ccp_sha_setkey()
301 static int ccp_sha_cra_init(struct crypto_tfm *tfm) in ccp_sha_cra_init() argument
303 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_sha_cra_init()
304 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init()
314 static void ccp_sha_cra_exit(struct crypto_tfm *tfm) in ccp_sha_cra_exit() argument
318 static int ccp_hmac_sha_cra_init(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_init() argument
320 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_hmac_sha_cra_init()
321 struct ccp_crypto_ahash_alg *alg = ccp_crypto_ahash_alg(tfm); in ccp_hmac_sha_cra_init()
333 return ccp_sha_cra_init(tfm); in ccp_hmac_sha_cra_init()
336 static void ccp_hmac_sha_cra_exit(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_exit() argument
338 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_hmac_sha_cra_exit()
343 ccp_sha_cra_exit(tfm); in ccp_hmac_sha_cra_exit()