[Feature]add MT2731_MP2_MR2_SVN388 baseline version
Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/src/bsp/lk/lib/sha512/include/sha512.h b/src/bsp/lk/lib/sha512/include/sha512.h
new file mode 100644
index 0000000..cc486d5
--- /dev/null
+++ b/src/bsp/lk/lib/sha512/include/sha512.h
@@ -0,0 +1,27 @@
+
+
+#define SHA_LBLOCK 16
+#define SHA_CBLOCK (SHA_LBLOCK*4)/* SHA treats input data as a
+ * contiguous array of 32 bit wide
+ * big-endian values. */
+#define SHA_LAST_BLOCK (SHA_CBLOCK-8)
+#define SHA_DIGEST_LENGTH 20
+#define SHA512_CBLOCK (SHA_LBLOCK*8)
+#define SHA512_DIGEST_LENGTH 64
+
+
+#define SHA_LONG64 unsigned long
+
+#define U64(C) C##ULL
+
+
+typedef struct SHA512state_st {
+ SHA_LONG64 h[8];
+ SHA_LONG64 Nl, Nh;
+ union {
+ SHA_LONG64 d[SHA_LBLOCK];
+ unsigned char p[SHA512_CBLOCK];
+ } u;
+ unsigned int num, md_len;
+} SHA512_CTX;
+