Skip to content

Commit 4c41186

Browse files
stefanbergermimizohar
authored andcommitted
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>
1 parent e11afdb commit 4c41186

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

security/integrity/evm/evm.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ extern int evm_initialized;
3838

3939
extern int evm_hmac_attrs;
4040

41-
extern struct crypto_shash *hmac_tfm;
42-
extern struct crypto_shash *hash_tfm;
43-
4441
/* List of EVM protected security xattrs */
4542
extern struct list_head evm_config_xattrnames;
4643

security/integrity/evm/evm_crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
static unsigned char evmkey[MAX_KEY_SIZE];
2727
static const int evmkey_len = MAX_KEY_SIZE;
2828

29-
struct crypto_shash *hmac_tfm;
29+
static struct crypto_shash *hmac_tfm;
3030
static struct crypto_shash *evm_tfm[HASH_ALGO__LAST];
3131

3232
static DEFINE_MUTEX(mutex);

0 commit comments

Comments
 (0)