ima: support arbitrary hash algorithms in ima_calc_buffer_hash
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 7 Jun 2013 10:16:24 +0000 (12:16 +0200)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 25 Oct 2013 21:17:01 +0000 (17:17 -0400)
commitea593993d361748e795f5eb783a5fb5144fb2df9
tree387915941a654ae6b23199d372c73afede8d19e1
parent723326b927b675daf4223fe31d7428eca68f194b
ima: support arbitrary hash algorithms in ima_calc_buffer_hash

ima_calc_buffer_hash will be used with different hash algorithms.
This patch provides support for arbitrary hash algorithms in
ima_calc_buffer_hash.

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_api.c
security/integrity/ima/ima_crypto.c