• Home
  • Raw
  • Download

Lines Matching refs:req

201 static void ahash_complete(struct crypto_async_request *req, int err)  in ahash_complete()  argument
203 struct ahash_completion *res = req->data; in ahash_complete()
236 struct ahash_request *req; in ima_calc_file_hash_atfm() local
243 req = ahash_request_alloc(tfm, GFP_KERNEL); in ima_calc_file_hash_atfm()
244 if (!req) in ima_calc_file_hash_atfm()
248 ahash_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG | in ima_calc_file_hash_atfm()
252 rc = ahash_wait(crypto_ahash_init(req), &res); in ima_calc_file_hash_atfm()
313 ahash_request_set_crypt(req, sg, NULL, rbuf_len); in ima_calc_file_hash_atfm()
315 ahash_rc = crypto_ahash_update(req); in ima_calc_file_hash_atfm()
327 ahash_request_set_crypt(req, NULL, hash->digest, 0); in ima_calc_file_hash_atfm()
328 rc = ahash_wait(crypto_ahash_final(req), &res); in ima_calc_file_hash_atfm()
331 ahash_request_free(req); in ima_calc_file_hash_atfm()
557 struct ahash_request *req; in calc_buffer_ahash_atfm() local
564 req = ahash_request_alloc(tfm, GFP_KERNEL); in calc_buffer_ahash_atfm()
565 if (!req) in calc_buffer_ahash_atfm()
569 ahash_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG | in calc_buffer_ahash_atfm()
573 rc = ahash_wait(crypto_ahash_init(req), &res); in calc_buffer_ahash_atfm()
578 ahash_request_set_crypt(req, &sg, NULL, len); in calc_buffer_ahash_atfm()
580 ahash_rc = crypto_ahash_update(req); in calc_buffer_ahash_atfm()
585 ahash_request_set_crypt(req, NULL, hash->digest, 0); in calc_buffer_ahash_atfm()
586 rc = ahash_wait(crypto_ahash_final(req), &res); in calc_buffer_ahash_atfm()
589 ahash_request_free(req); in calc_buffer_ahash_atfm()