new headers

This commit is contained in:
mike@arpaia.co 2014-11-10 17:38:35 -05:00 committed by Sean Williams
parent f958b18984
commit 542c7d83a9
3 changed files with 81 additions and 4 deletions

View File

@ -0,0 +1,22 @@
// Copyright 2004-present Facebook. All Rights Reserved.
#pragma once
/**
* @brief XXX
*
* @param foo this is what foo does
*
* @return XXX
*/
unsigned char *kernel_text_hash(void);
/**
* @brief XXX
*
* @param foo this is what foo does
* @param bar this is what bar does
*
* @return XXX
*/
unsigned char *hash_data(const void *, size_t);

View File

@ -0,0 +1,55 @@
// Copyright 2004-present Facebook. All Rights Reserved.
#pragma once
#include <linux/kobject.h>
/**
* @brief XXX
*
* @param foo this is what foo does
*
* @return XXX
*/
int expose_sysfs(void);
/**
* @brief XXX
*
* @param foo this is what foo does
* @param bar this is what bar does
* @param baz this is what baz does
*
* @return XXX
*/
ssize_t text_segment_hash_show(struct kobject *, struct attribute *, char *);
/**
* @brief XXX
*/
struct camb_attr {
/// This is what this is
struct attribute attr;
/// This is what that is
int value;
};
unsigned char *kernel_text_hash(void);
/**
* @brief XXX
*
* @param foo this is what foo does
* @param bar this is what bar does
*
* @return XXX
*/
unsigned char *hash_data(const void *, size_t);

View File

@ -42,10 +42,10 @@ unsigned char *hash_data(const void *data, size_t len) {
out_len,
"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x"
"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
hashtext[0], hashtext[1], hashtext[2], hashtext[3],
hashtext[4], hashtext[5], hashtext[6], hashtext[7],
hashtext[8], hashtext[9], hashtext[10], hashtext[11],
hashtext[12], hashtext[13], hashtext[14], hashtext[15],
hashtext[0], hashtext[1], hashtext[2], hashtext[3],
hashtext[4], hashtext[5], hashtext[6], hashtext[7],
hashtext[8], hashtext[9], hashtext[10], hashtext[11],
hashtext[12], hashtext[13], hashtext[14], hashtext[15],
hashtext[16], hashtext[17], hashtext[18], hashtext[19]
);