Lines Matching refs:req
211 struct ahash_request *req; in ima_calc_file_hash_atfm() local
218 req = ahash_request_alloc(tfm, GFP_KERNEL); in ima_calc_file_hash_atfm()
219 if (!req) in ima_calc_file_hash_atfm()
223 ahash_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG | in ima_calc_file_hash_atfm()
227 rc = ahash_wait(crypto_ahash_init(req), &wait); in ima_calc_file_hash_atfm()
293 ahash_request_set_crypt(req, sg, NULL, rbuf_len); in ima_calc_file_hash_atfm()
295 ahash_rc = crypto_ahash_update(req); in ima_calc_file_hash_atfm()
307 ahash_request_set_crypt(req, NULL, hash->digest, 0); in ima_calc_file_hash_atfm()
308 rc = ahash_wait(crypto_ahash_final(req), &wait); in ima_calc_file_hash_atfm()
311 ahash_request_free(req); in ima_calc_file_hash_atfm()
535 struct ahash_request *req; in calc_buffer_ahash_atfm() local
542 req = ahash_request_alloc(tfm, GFP_KERNEL); in calc_buffer_ahash_atfm()
543 if (!req) in calc_buffer_ahash_atfm()
547 ahash_request_set_callback(req, CRYPTO_TFM_REQ_MAY_BACKLOG | in calc_buffer_ahash_atfm()
551 rc = ahash_wait(crypto_ahash_init(req), &wait); in calc_buffer_ahash_atfm()
556 ahash_request_set_crypt(req, &sg, NULL, len); in calc_buffer_ahash_atfm()
558 ahash_rc = crypto_ahash_update(req); in calc_buffer_ahash_atfm()
563 ahash_request_set_crypt(req, NULL, hash->digest, 0); in calc_buffer_ahash_atfm()
564 rc = ahash_wait(crypto_ahash_final(req), &wait); in calc_buffer_ahash_atfm()
567 ahash_request_free(req); in calc_buffer_ahash_atfm()