/* * Copyright (C) 2017 Huawei Technologies Duesseldorf GmbH * * Author: Roberto Sassu <roberto.sassu@huawei.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation, version 2 of the * License. * * File: lib.h * Header of lib.h. */#ifndef _LIB_H#define _LIB_H#include <openssl/sha.h>#include <openssl/evp.h>#include "kernel_lib.h"#define MAX_FILENAME_LENGTH 256externchar*digest_list_path;intcalc_digest(u8*digest,void*data,intlen,enumhash_algoalgo);intcalc_file_digest(char*path,u8*digest,enumhash_algoalgo);intkernel_read_file_from_path(constchar*path,void**buf,loff_t*size,loff_tmax_size,enumkernel_read_file_idid);#endif /* _LIB_H */