Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/crypto.h>
#include <linux/xattr.h>
#include <keys/encrypted-type.h>
#include <crypto/hash.h>
#include "evm.h"
Go to the source code of this file.
Macros | |
#define | EVMKEY "evm-key" |
#define | MAX_KEY_SIZE 128 |
Functions | |
int | evm_calc_hmac (struct dentry *dentry, const char *req_xattr_name, const char *req_xattr_value, size_t req_xattr_value_len, char *digest) |
int | evm_calc_hash (struct dentry *dentry, const char *req_xattr_name, const char *req_xattr_value, size_t req_xattr_value_len, char *digest) |
int | evm_update_evmxattr (struct dentry *dentry, const char *xattr_name, const char *xattr_value, size_t xattr_value_len) |
int | evm_init_hmac (struct inode *inode, const struct xattr *lsm_xattr, char *hmac_val) |
int | evm_init_key (void) |
Variables | |
struct crypto_shash * | hmac_tfm |
struct crypto_shash * | hash_tfm |
#define EVMKEY "evm-key" |
Definition at line 23 of file evm_crypto.c.
#define MAX_KEY_SIZE 128 |
Definition at line 24 of file evm_crypto.c.
int evm_calc_hash | ( | struct dentry * | dentry, |
const char * | req_xattr_name, | ||
const char * | req_xattr_value, | ||
size_t | req_xattr_value_len, | ||
char * | digest | ||
) |
Definition at line 181 of file evm_crypto.c.
int evm_calc_hmac | ( | struct dentry * | dentry, |
const char * | req_xattr_name, | ||
const char * | req_xattr_value, | ||
size_t | req_xattr_value_len, | ||
char * | digest | ||
) |
Definition at line 173 of file evm_crypto.c.
Definition at line 214 of file evm_crypto.c.
Definition at line 234 of file evm_crypto.c.
int evm_update_evmxattr | ( | struct dentry * | dentry, |
const char * | xattr_name, | ||
const char * | xattr_value, | ||
size_t | xattr_value_len | ||
) |
Definition at line 194 of file evm_crypto.c.
Definition at line 29 of file evm_crypto.c.
struct crypto_shash* hmac_tfm |
Definition at line 28 of file evm_crypto.c.