Dmitry Kasatkin c7c8bb237f ima: provide support for arbitrary hash algorithms
In preparation of supporting more hash algorithms with larger hash sizes
needed for signature verification, this patch replaces the 20 byte sized
digest, with a more flexible structure.  The new structure includes the
hash algorithm, digest size, and digest.

Changelog:
- recalculate filedata hash for the measurement list, if the signature
  hash digest size is greater than 20 bytes.
- use generic HASH_ALGO_
- make ima_calc_file_hash static
- scripts lindent and checkpatch fixes

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
2013-10-25 17:16:58 -04:00
..
2011-07-26 16:49:47 -07:00
2013-02-04 21:16:53 +08:00
2013-02-04 21:16:53 +08:00
2013-02-04 21:16:53 +08:00
2013-02-04 21:16:53 +08:00
2013-04-25 21:01:47 +08:00
2013-02-04 21:16:53 +08:00
2010-02-16 20:33:49 +08:00
2010-12-02 14:47:16 +08:00
2008-08-29 15:50:02 +10:00
2013-07-09 10:33:30 -07:00
2013-07-09 10:33:30 -07:00
2011-08-06 18:32:45 -07:00
2013-02-04 21:16:53 +08:00