All of lore.kernel.org
 help / color / mirror / Atom feed
* Does IMA support SHA-256 PCR banks?
@ 2019-12-10 22:37 Lakshmi Ramasubramanian
  2019-12-11  8:45 ` Roberto Sassu
  0 siblings, 1 reply; 5+ messages in thread
From: Lakshmi Ramasubramanian @ 2019-12-10 22:37 UTC (permalink / raw)
  To: James Bottomley, jarkko.sakkinen, Mimi Zohar, linux-integrity

Hi,

I noticed that even when SHA-256 is selected as the digest algorithm for 
IMA measurement, the PCR hash is still SHA-1.

A net search found the text given below in the following wiki:
    https://wiki.strongswan.org/projects/strongswan/wiki/IMA

**********************************************************************
Since SHA-1 has been "shattered" we recommend to use SHA-256 for the 
file measurement hashes.

IMA implementation does not support SHA-256 PCR banks yet, so the 
SHA-256 file hashes are extended into SHA-1 PCR registers.
**********************************************************************

Is the above still true?

In ima_init_digests() the digest algorithm for PCR extend is set from 
the digest algorithm set in the PCR banks.

Is there a way to configure IMA to use SHA-256 PCR banks?

int __init ima_init_digests(void)
{
...
	for (i = 0; i < ima_tpm_chip->nr_allocated_banks; i++)
		digests[i].alg_id = ima_tpm_chip->allocated_banks[i].alg_id;
...
	
}

thanks,
  -lakshmi

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-01-07  8:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-10 22:37 Does IMA support SHA-256 PCR banks? Lakshmi Ramasubramanian
2019-12-11  8:45 ` Roberto Sassu
2019-12-11 17:35   ` Lakshmi Ramasubramanian
2019-12-25 16:46   ` Ken Goldman
2020-01-07  8:58     ` Roberto Sassu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.