Index: src/platform/vboot_reference/crypto/sha1.c |
diff --git a/src/platform/vboot_reference/crypto/sha1.c b/src/platform/vboot_reference/crypto/sha1.c |
index 41b729b18cd2d5b9a9508d483b56761c7b030110..5844eccd7b04ffbec919505c81945a11aec72197 100644 |
--- a/src/platform/vboot_reference/crypto/sha1.c |
+++ b/src/platform/vboot_reference/crypto/sha1.c |
@@ -1,14 +1,13 @@ |
/* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
* Use of this source code is governed by a BSD-style license that can be |
* found in the LICENSE file. |
- * |
- * SHA-1 implementation largely based on libmincrypt in the the Android |
- * Open Source Project (platorm/system/core.git/libmincrypt/sha.c |
*/ |
-#include "cryptolib.h" |
-#include "utility.h" |
+/* SHA-1 implementation largely based on libmincrypt in the the Android |
+ * Open Source Project (platorm/system/core.git/libmincrypt/sha.c |
+ */ |
+#include "sha.h" |
/* Some machines lack byteswap.h and endian.h. These have to use the |
* slower code, even if they're little-endian. |
@@ -135,7 +134,7 @@ void SHA1_update(SHA1_CTX* ctx, const uint8_t* data, uint64_t len) { |
ctx->count += len; |
while (len > sizeof(ctx->buf) - i) { |
- Memcpy(&ctx->buf.b[i], p, sizeof(ctx->buf) - i); |
+ memcpy(&ctx->buf.b[i], p, sizeof(ctx->buf) - i); |
len -= sizeof(ctx->buf) - i; |
p += sizeof(ctx->buf) - i; |
SHA1_Transform(ctx); |