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()
149 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in ccp_sha_init() local
150 struct ccp_ctx *ctx = crypto_ahash_ctx(tfm); in ccp_sha_init()
153 ccp_crypto_ahash_alg(crypto_ahash_tfm(tfm)); in ccp_sha_init()
155 crypto_tfm_alg_blocksize(crypto_ahash_tfm(tfm)); in ccp_sha_init()
237 static int ccp_sha_setkey(struct crypto_ahash *tfm, const u8 *key, in ccp_sha_setkey() argument
240 struct ccp_ctx *ctx = crypto_tfm_ctx(crypto_ahash_tfm(tfm)); in ccp_sha_setkey()
259 sdesc->tfm = shash; in ccp_sha_setkey()
260 sdesc->flags = crypto_ahash_get_flags(tfm) & in ccp_sha_setkey()
266 crypto_ahash_set_flags(tfm, CRYPTO_TFM_RES_BAD_KEY_LEN); in ccp_sha_setkey()
288 static int ccp_sha_cra_init(struct crypto_tfm *tfm) in ccp_sha_cra_init() argument
290 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_sha_cra_init()
291 struct crypto_ahash *ahash = __crypto_ahash_cast(tfm); in ccp_sha_cra_init()
301 static void ccp_sha_cra_exit(struct crypto_tfm *tfm) in ccp_sha_cra_exit() argument
305 static int ccp_hmac_sha_cra_init(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_init() argument
307 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_hmac_sha_cra_init()
308 struct ccp_crypto_ahash_alg *alg = ccp_crypto_ahash_alg(tfm); in ccp_hmac_sha_cra_init()
320 return ccp_sha_cra_init(tfm); in ccp_hmac_sha_cra_init()
323 static void ccp_hmac_sha_cra_exit(struct crypto_tfm *tfm) in ccp_hmac_sha_cra_exit() argument
325 struct ccp_ctx *ctx = crypto_tfm_ctx(tfm); in ccp_hmac_sha_cra_exit()
330 ccp_sha_cra_exit(tfm); in ccp_hmac_sha_cra_exit()