diff options
author | Dmitry Kasatkin <dmitry.kasatkin@intel.com> | 2012-05-14 14:13:56 +0300 |
---|---|---|
committer | Mimi Zohar <zohar@linux.vnet.ibm.com> | 2013-02-06 10:41:13 -0500 |
commit | 50af554466804bf51a52fa3d1d0a76f96bd33929 (patch) | |
tree | b7a3737c726a690ddefa60fdc01427d46d1d08b2 /security/integrity/ima/ima.h | |
parent | 76bb28f6126f20ee987b9d2570fa653d95d30ae9 (diff) | |
download | op-kernel-dev-50af554466804bf51a52fa3d1d0a76f96bd33929.zip op-kernel-dev-50af554466804bf51a52fa3d1d0a76f96bd33929.tar.gz |
ima: rename hash calculation functions
Rename hash calculation functions to reflect meaning
and change argument order in conventional way.
Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Diffstat (limited to 'security/integrity/ima/ima.h')
-rw-r--r-- | security/integrity/ima/ima.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h index 5a94f9c..6e69697 100644 --- a/security/integrity/ima/ima.h +++ b/security/integrity/ima/ima.h @@ -84,8 +84,8 @@ void ima_fs_cleanup(void); int ima_inode_alloc(struct inode *inode); int ima_add_template_entry(struct ima_template_entry *entry, int violation, const char *op, struct inode *inode); -int ima_calc_hash(struct file *file, char *digest); -int ima_calc_template_hash(int template_len, void *template, char *digest); +int ima_calc_file_hash(struct file *file, char *digest); +int ima_calc_buffer_hash(const void *data, int len, char *digest); int ima_calc_boot_aggregate(char *digest); void ima_add_violation(struct inode *inode, const unsigned char *filename, const char *op, const char *cause); |