]> git.baikalelectronics.ru Git - kernel.git/commit
ima: Allocate and initialize tfm for each PCR bank
authorRoberto Sassu <roberto.sassu@huawei.com>
Wed, 25 Mar 2020 10:52:48 +0000 (11:52 +0100)
committerMimi Zohar <zohar@linux.ibm.com>
Mon, 20 Apr 2020 02:03:39 +0000 (22:03 -0400)
commitcfe50190bdfb384912b5063a670ae812d817bcd3
treed076c88b00fb936f2bec3eaad79191d12414ee0c
parent0d5f42f43b710820d600cc8adaede1cdb93201c8
ima: Allocate and initialize tfm for each PCR bank

This patch creates a crypto_shash structure for each allocated PCR bank and
for SHA1 if a bank with that algorithm is not currently allocated.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_crypto.c