aboutsummaryrefslogtreecommitdiffstats
path: root/security/integrity/evm/evm_crypto.c
diff options
context:
space:
mode:
authorStefan Berger <stefanb@linux.ibm.com>2022-05-13 13:41:05 -0400
committerMimi Zohar <zohar@linux.ibm.com>2022-05-16 08:14:38 -0400
commit4c41186ff394680cbde32a6a29e539f1e6036a47 (patch)
treec968773ae626e3ddb2771e6020faf5d3f749cdc1 /security/integrity/evm/evm_crypto.c
parentevm: Return INTEGRITY_PASS for enum integrity_status value '0' (diff)
downloadlinux-dev-4c41186ff394680cbde32a6a29e539f1e6036a47.tar.xz
linux-dev-4c41186ff394680cbde32a6a29e539f1e6036a47.zip
evm: Clean up some variables
Make hmac_tfm static since it's not used anywhere else besides the file it is in. Remove declaration of hash_tfm since it doesn't exist. Signed-off-by: Stefan Berger <stefanb@linux.ibm.com> Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to '')
-rw-r--r--security/integrity/evm/evm_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/integrity/evm/evm_crypto.c b/security/integrity/evm/evm_crypto.c
index 0450d79afdc8..a733aff02006 100644
--- a/security/integrity/evm/evm_crypto.c
+++ b/security/integrity/evm/evm_crypto.c
@@ -26,7 +26,7 @@
static unsigned char evmkey[MAX_KEY_SIZE];
static const int evmkey_len = MAX_KEY_SIZE;
-struct crypto_shash *hmac_tfm;
+static struct crypto_shash *hmac_tfm;
static struct crypto_shash *evm_tfm[HASH_ALGO__LAST];
static DEFINE_MUTEX(mutex);