path: root/security/integrity/digsig_asymmetric.c
diff options
authorDmitry Kasatkin <>2013-04-25 10:43:56 +0300
committerMimi Zohar <>2013-10-25 17:16:58 -0400
commitc7c8bb237fdbff932b5e431aebee5ce862ea07d1 (patch)
tree4cdbc7c250dd4418b47ab45dd1108848b50f8cff /security/integrity/digsig_asymmetric.c
parent3fe78ca2fb1d61ea598e63fcbf38aec76b36b3a8 (diff)
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 <>
Diffstat (limited to 'security/integrity/digsig_asymmetric.c')
0 files changed, 0 insertions, 0 deletions