summaryrefslogtreecommitdiff
path: root/chip/g/dcrypto/sha384.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/g/dcrypto/sha384.c')
-rw-r--r--chip/g/dcrypto/sha384.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/chip/g/dcrypto/sha384.c b/chip/g/dcrypto/sha384.c
new file mode 100644
index 0000000000..6f3c6ca096
--- /dev/null
+++ b/chip/g/dcrypto/sha384.c
@@ -0,0 +1,20 @@
+/* Copyright 2016 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.
+ */
+
+#include "dcrypto.h"
+#include "internal.h"
+
+#include "cryptoc/sha384.h"
+
+void DCRYPTO_SHA384_init(LITE_SHA512_CTX *ctx)
+{
+ SHA384_init(ctx);
+}
+
+const uint8_t *DCRYPTO_SHA384_hash(const void *data, uint32_t n,
+ uint8_t *digest)
+{
+ return SHA384_hash(data, n, digest);
+}