summaryrefslogtreecommitdiff
path: root/chip/host/dcrypto/sha256.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/host/dcrypto/sha256.c')
-rw-r--r--chip/host/dcrypto/sha256.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/chip/host/dcrypto/sha256.c b/chip/host/dcrypto/sha256.c
index 1c9fda27c2..ec2638ffc3 100644
--- a/chip/host/dcrypto/sha256.c
+++ b/chip/host/dcrypto/sha256.c
@@ -3,7 +3,18 @@
* found in the LICENSE file.
*/
-#include "dcrypto.h"
+#include "internal.h"
+
+void SHA1_hw_init(struct sha1_ctx *ctx)
+{
+ SHA1_sw_init(ctx);
+}
+
+const struct sha1_digest *SHA1_hw_hash(const void *data, size_t n,
+ struct sha1_digest *digest)
+{
+ return SHA1_sw_hash(data, n, digest);
+}
void SHA256_hw_init(struct sha256_ctx *ctx)
{