Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
evm_crypto.c File Reference
#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_shashhmac_tfm
 
struct crypto_shashhash_tfm
 

Macro Definition Documentation

#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.

Function Documentation

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.

int evm_init_hmac ( struct inode inode,
const struct xattr lsm_xattr,
char hmac_val 
)

Definition at line 214 of file evm_crypto.c.

int evm_init_key ( void  )

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.

Variable Documentation

Definition at line 29 of file evm_crypto.c.

struct crypto_shash* hmac_tfm

Definition at line 28 of file evm_crypto.c.