Lines Matching refs:rbuf_len
330 int rc, rbuf_len, active = 0, ahash_rc = 0; in ima_calc_file_hash_atfm() local
377 for (offset = 0; offset < i_size; offset += rbuf_len) { in ima_calc_file_hash_atfm()
388 rbuf_len = min_t(loff_t, i_size - offset, rbuf_size[active]); in ima_calc_file_hash_atfm()
390 rbuf_len); in ima_calc_file_hash_atfm()
391 if (rc != rbuf_len) { in ima_calc_file_hash_atfm()
412 sg_init_one(&sg[0], rbuf[active], rbuf_len); in ima_calc_file_hash_atfm()
413 ahash_request_set_crypt(req, sg, NULL, rbuf_len); in ima_calc_file_hash_atfm()
478 int rbuf_len; in ima_calc_file_hash_tfm() local
480 rbuf_len = integrity_kernel_read(file, offset, rbuf, PAGE_SIZE); in ima_calc_file_hash_tfm()
481 if (rbuf_len < 0) { in ima_calc_file_hash_tfm()
482 rc = rbuf_len; in ima_calc_file_hash_tfm()
485 if (rbuf_len == 0) { /* unexpected EOF */ in ima_calc_file_hash_tfm()
489 offset += rbuf_len; in ima_calc_file_hash_tfm()
491 rc = crypto_shash_update(shash, rbuf, rbuf_len); in ima_calc_file_hash_tfm()