From: Dmitry Kasatkin Date: Thu, 25 Apr 2013 07:43:56 +0000 (+0300) Subject: ima: provide support for arbitrary hash algorithms X-Git-Tag: v3.13-rc1~18^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7c8bb237fdbff932b5e431aebee5ce862ea07d1;p=pandora-kernel.git 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 Signed-off-by: Mimi Zohar --- Reading git-diff-tree failed