aboutsummaryrefslogtreecommitdiff
path: root/lib/sec_library/include/sha.h
diff options
context:
space:
mode:
authorthead_admin <occ_thead@service.alibaba.com>2023-03-05 22:36:05 +0800
committerthead_admin <occ_thead@service.alibaba.com>2023-03-05 22:36:05 +0800
commit51a2c4f06046f571caa47a9c7e4e725493020f3c (patch)
treec2dc07815806ab8236b742337e9f573a8facda6e /lib/sec_library/include/sha.h
parent02deb8b059118cd2b0fb3c8bbb6d73fd1f87115a (diff)
Linux_SDK_V1.1.2Linux_SDK_V1.1.2
Diffstat (limited to 'lib/sec_library/include/sha.h')
-rwxr-xr-x[-rw-r--r--]lib/sec_library/include/sha.h30
1 files changed, 22 insertions, 8 deletions
diff --git a/lib/sec_library/include/sha.h b/lib/sec_library/include/sha.h
index c5216a40..33e8baad 100644..100755
--- a/lib/sec_library/include/sha.h
+++ b/lib/sec_library/include/sha.h
@@ -19,14 +19,28 @@
extern "C" {
#endif
-#define HASH_DATAIN_BLOCK_SIZE 64
-
-#define SHA1_DIGEST_OUT_SIZE 20
-#define SHA224_DIGEST_OUT_SIZE 28
-#define SHA256_DIGEST_OUT_SIZE 32
-#define SHA384_DIGEST_OUT_SIZE 48
-#define SHA512_DIGEST_OUT_SIZE 64
-#define MD5_DIGEST_OUT_SIZE 16
+#define HASH_DATAIN_BLOCK_SIZE (64)
+
+#define SHA1_DIGEST_OUT_SIZE (20)
+#define SHA224_DIGEST_OUT_SIZE (28)
+#define SHA256_DIGEST_OUT_SIZE (32)
+#define SHA384_DIGEST_OUT_SIZE (48)
+#define SHA512_DIGEST_OUT_SIZE (64)
+#define MD5_DIGEST_OUT_SIZE (16)
+
+#define CSI_SHA256_MODE (0x00000008)
+#define CSI_SHA224_MODE (0x00000010)
+#define CSI_SHA384_MODE (0x00000040)
+#define CSI_SHA512_MODE (0x00000020)
+#define CSI_MD5_MODE (0x00000002)
+#define CSI_SHA1_MODE (0x00000004)
+
+#define CSI_SHA256_NEW_MODE (0x00000009)
+#define CSI_SHA224_MEW_MODE (0x00000011)
+#define CSI_SHA384_NEW_MODE (0x00000041)
+#define CSI_SHA512_NEW_MODE (0x00000021)
+#define CSI_MD5_NEW_MODE (0x00000003)
+#define CSI_SHA1_NEW_MODE (0x00000005)
/****** SHA mode ******/
typedef enum {