aboutsummaryrefslogtreecommitdiffstats
path: root/src/sha1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sha1.c')
-rw-r--r--src/sha1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sha1.c b/src/sha1.c
index 2ecb3cb8..e6d80c80 100644
--- a/src/sha1.c
+++ b/src/sha1.c
@@ -13,7 +13,7 @@
#include "config.h"
#include "byteorder.h" // cpu_to_*, __swab64
-#include "sha1.h" // sha1
+#include "sha.h" // sha1
#include "string.h" // memcpy
#include "x86.h" // rol
@@ -126,11 +126,11 @@ sha1_do(sha1_ctx *ctx, const u8 *data32, u32 length)
}
-u32
+void
sha1(const u8 *data, u32 length, u8 *hash)
{
if (!CONFIG_TCGBIOS)
- return 0;
+ return;
sha1_ctx ctx = {
.h[0] = 0x67452301,
@@ -143,5 +143,5 @@ sha1(const u8 *data, u32 length, u8 *hash)
sha1_do(&ctx, data, length);
memcpy(hash, &ctx.h[0], 20);
- return 0;
+ return;
}