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)
commit6d94809af6b0830c4dfcad661535a5939bcb8a7d
treed076c88b00fb936f2bec3eaad79191d12414ee0c
parentaa724fe18a8a8285d0071c3bfc932efb090d142d
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