Lines Matching refs:size
76 int size = 0; in get_binary_runtime_size() local
78 size += sizeof(u32); /* pcr */ in get_binary_runtime_size()
79 size += TPM_DIGEST_SIZE; in get_binary_runtime_size()
80 size += sizeof(int); /* template name size field */ in get_binary_runtime_size()
81 size += strlen(entry->template_desc->name); in get_binary_runtime_size()
82 size += sizeof(entry->template_data_len); in get_binary_runtime_size()
83 size += entry->template_data_len; in get_binary_runtime_size()
84 return size; in get_binary_runtime_size()
116 int size; in ima_add_digest_entry() local
118 size = get_binary_runtime_size(entry); in ima_add_digest_entry()
119 binary_runtime_size = (binary_runtime_size < ULONG_MAX - size) ? in ima_add_digest_entry()
120 binary_runtime_size + size : ULONG_MAX; in ima_add_digest_entry()