Use local SHA512 header

Actually use the local private SHA512 header instead of relying on the
OpenSSL one for no good reason. Add definition for expected macro
SHA512_DIGEST_LENGTH.
This commit is contained in:
Guillem Jover 2015-12-01 03:39:10 +01:00
parent 2b030da016
commit 8493c7f27d
4 changed files with 7 additions and 3 deletions

View File

@ -39,7 +39,7 @@
#include <string.h>
#include <termios.h>
#include <openssl/sha.h>
#include "hash/sha512.h"
#include <libperfstat.h>

View File

@ -41,7 +41,8 @@
#include <errno.h>
#include <unistd.h>
#include <time.h>
#include <openssl/sha.h>
#include "hash/sha512.h"
#include <sys/vfs.h>

View File

@ -47,7 +47,8 @@
#include <errno.h>
#include <unistd.h>
#include <time.h>
#include <openssl/sha.h>
#include "hash/sha512.h"
#include <linux/types.h>
#include <linux/random.h>

View File

@ -31,6 +31,8 @@
#include <sys/types.h>
#define SHA512_DIGEST_LENGTH 64
typedef struct SHA512Context {
uint64_t state[8];
uint64_t count[2];