]> 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)
commit4ded3392b061052521b5181c9f1c4668d662600e
treed076c88b00fb936f2bec3eaad79191d12414ee0c
parent0d0ed3894b1f8d596dd25b889446e775de8fcc40
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