summaryrefslogtreecommitdiffstats
path: root/security/integrity/evm/evm.h
diff options
context:
space:
mode:
authorDmitry Kasatkin2011-03-09 21:07:36 +0100
committerMimi Zohar2011-07-18 18:29:46 +0200
commitd46eb3699502ba221e81e88e6c6594e2a7818532 (patch)
tree4761b63f12ded9ad53e3019c33d62d173b4b07da /security/integrity/evm/evm.h
parentevm: call evm_inode_init_security from security_inode_init_security (diff)
downloadkernel-qcow2-linux-d46eb3699502ba221e81e88e6c6594e2a7818532.tar.gz
kernel-qcow2-linux-d46eb3699502ba221e81e88e6c6594e2a7818532.tar.xz
kernel-qcow2-linux-d46eb3699502ba221e81e88e6c6594e2a7818532.zip
evm: crypto hash replaced by shash
Using shash is more efficient, because the algorithm is allocated only once. Only the descriptor to store the hash state needs to be allocated for every operation. Changelog v6: - check for crypto_shash_setkey failure Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com> Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security/integrity/evm/evm.h')
-rw-r--r--security/integrity/evm/evm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/security/integrity/evm/evm.h b/security/integrity/evm/evm.h
index a45d0d630a30..d320f5197437 100644
--- a/security/integrity/evm/evm.h
+++ b/security/integrity/evm/evm.h
@@ -19,6 +19,8 @@
extern int evm_initialized;
extern char *evm_hmac;
+extern struct crypto_shash *hmac_tfm;
+
/* List of EVM protected security xattrs */
extern char *evm_config_xattrnames[];