Lines Matching refs:rbuf_len
335 int rc, rbuf_len, active = 0, ahash_rc = 0; in ima_calc_file_hash_atfm() local
382 for (offset = 0; offset < i_size; offset += rbuf_len) { in ima_calc_file_hash_atfm()
393 rbuf_len = min_t(loff_t, i_size - offset, rbuf_size[active]); in ima_calc_file_hash_atfm()
395 rbuf_len); in ima_calc_file_hash_atfm()
396 if (rc != rbuf_len) { in ima_calc_file_hash_atfm()
417 sg_init_one(&sg[0], rbuf[active], rbuf_len); in ima_calc_file_hash_atfm()
418 ahash_request_set_crypt(req, sg, NULL, rbuf_len); in ima_calc_file_hash_atfm()
483 int rbuf_len; in ima_calc_file_hash_tfm() local
485 rbuf_len = integrity_kernel_read(file, offset, rbuf, PAGE_SIZE); in ima_calc_file_hash_tfm()
486 if (rbuf_len < 0) { in ima_calc_file_hash_tfm()
487 rc = rbuf_len; in ima_calc_file_hash_tfm()
490 if (rbuf_len == 0) { /* unexpected EOF */ in ima_calc_file_hash_tfm()
494 offset += rbuf_len; in ima_calc_file_hash_tfm()
496 rc = crypto_shash_update(shash, rbuf, rbuf_len); in ima_calc_file_hash_tfm()