summaryrefslogtreecommitdiffstats
path: root/security/integrity/ima/ima.h
diff options
context:
space:
mode:
authorDmitry Kasatkin2012-06-08 09:42:30 +0200
committerMimi Zohar2013-02-06 16:41:12 +0100
commit76bb28f6126f20ee987b9d2570fa653d95d30ae9 (patch)
treed03a184b5fb611544519662784ec50fee55bac72 /security/integrity/ima/ima.h
parentima: add policy support for file system uuid (diff)
downloadkernel-qcow2-linux-76bb28f6126f20ee987b9d2570fa653d95d30ae9.tar.gz
kernel-qcow2-linux-76bb28f6126f20ee987b9d2570fa653d95d30ae9.tar.xz
kernel-qcow2-linux-76bb28f6126f20ee987b9d2570fa653d95d30ae9.zip
ima: use new crypto_shash API instead of old crypto_hash
Old crypto hash API internally uses shash API. Using shash API directly is more efficient. Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security/integrity/ima/ima.h')
-rw-r--r--security/integrity/ima/ima.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h
index ab68bed8ac36..5a94f9c92605 100644
--- a/security/integrity/ima/ima.h
+++ b/security/integrity/ima/ima.h
@@ -89,6 +89,7 @@ int ima_calc_template_hash(int template_len, void *template, char *digest);
int ima_calc_boot_aggregate(char *digest);
void ima_add_violation(struct inode *inode, const unsigned char *filename,
const char *op, const char *cause);
+int ima_init_crypto(void);
/*
* used to protect h_table and sha_table