diff options
author | Dmitry Kasatkin <dmitry.kasatkin@intel.com> | 2012-06-08 10:42:30 +0300 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2013-02-06 10:41:12 -0500 |
commit | 76bb28f6126f20ee987b9d2570fa653d95d30ae9 (patch) | |
tree | d03a184b5fb611544519662784ec50fee55bac72 /security/integrity/ima/ima.h | |
parent | 85865c1fa189fcba49089e6254a0226f2269bebc (diff) | |
download | op-kernel-dev-76bb28f6126f20ee987b9d2570fa653d95d30ae9.zip op-kernel-dev-76bb28f6126f20ee987b9d2570fa653d95d30ae9.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h index ab68bed..5a94f9c 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 |