[Feature][MD310EU][task-view-1009] Create MD310EU project code directory
Change-Id: I57cd3c474efe4493ae8a242d7e2fa643ad8ecbde
diff --git a/lynq/MD310EU/ap/app/dmp-test/util/util_sha256.h b/lynq/MD310EU/ap/app/dmp-test/util/util_sha256.h
new file mode 100755
index 0000000..2b1fb21
--- /dev/null
+++ b/lynq/MD310EU/ap/app/dmp-test/util/util_sha256.h
@@ -0,0 +1,37 @@
+/*******************************************************************************
+* Author : author
+* Version : V1.0
+* Date : 2021-07-27
+* Description : util_sha256.h
+********************************************************************************/
+
+#ifndef __UTIL_SHA256_H__
+#define __UTIL_SHA256_H__
+
+/********************************* Include File ********************************/
+#include <stdint.h>
+
+
+/********************************* Macro Definition ****************************/
+#define UNI_SHA256_KEY_SIZE (64)
+#define UNI_SHA256_TARGET_SIZE (32)
+
+
+/********************************* Type Definition *****************************/
+typedef struct
+{
+ uint32_t total[2];
+ uint32_t state[8];
+ unsigned char buffer[64];
+ int type; //0:SHA-256, not 0: SHA-224
+}uni_sha256_s;
+
+
+/********************************* Function Prototype Definition ***************/
+void utils_sha256_init(uni_sha256_s *tex);
+void utils_sha256_starts(uni_sha256_s *tex);
+void utils_sha256_update(uni_sha256_s *tex, const unsigned char *in, uint32_t in_len);
+void utils_sha256_finish(uni_sha256_s *tex, uint8_t out[32]);
+
+
+#endif