Searched refs:rbuf_len (Results 1 – 1 of 1) sorted by relevance
/Linux-v5.10/security/integrity/ima/ |
D | ima_crypto.c | 334 int rc, rbuf_len, active = 0, ahash_rc = 0; in ima_calc_file_hash_atfm() local 381 for (offset = 0; offset < i_size; offset += rbuf_len) { in ima_calc_file_hash_atfm() 392 rbuf_len = min_t(loff_t, i_size - offset, rbuf_size[active]); in ima_calc_file_hash_atfm() 394 rbuf_len); in ima_calc_file_hash_atfm() 395 if (rc != rbuf_len) { in ima_calc_file_hash_atfm() 416 sg_init_one(&sg[0], rbuf[active], rbuf_len); in ima_calc_file_hash_atfm() 417 ahash_request_set_crypt(req, sg, NULL, rbuf_len); in ima_calc_file_hash_atfm() 482 int rbuf_len; in ima_calc_file_hash_tfm() local 484 rbuf_len = integrity_kernel_read(file, offset, rbuf, PAGE_SIZE); in ima_calc_file_hash_tfm() 485 if (rbuf_len < 0) { in ima_calc_file_hash_tfm() [all …]
|