summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRoberto Sassu <roberto.sassu@huawei.com>2020-03-25 11:54:24 +0100
committerMimi Zohar <zohar@linux.ibm.com>2020-04-20 04:03:39 +0200
commit2592677c0486e64a08e0b930a7dfa6fbf77e6fc1 (patch)
treec4cd48197855b2fea5f3c1e0ee86edf6a759d84c /drivers
parentima: Calculate and extend PCR with digests in ima_template_entry (diff)
downloadlinux-2592677c0486e64a08e0b930a7dfa6fbf77e6fc1.tar.xz
linux-2592677c0486e64a08e0b930a7dfa6fbf77e6fc1.zip
ima: Use ima_hash_algo for collision detection in the measurement list
Before calculating a digest for each PCR bank, collisions were detected with a SHA1 digest. This patch includes ima_hash_algo among the algorithms used to calculate the template digest and checks collisions on that digest. The position in the measurement entry array of the template digest calculated with the IMA default hash algorithm is stored in the ima_hash_algo_idx global variable and is determined at IMA initialization time. Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions