Index: yc_calc.c
===================================================================
--- /YC3121_SDK/fw/crypt/yc_calc.c	(revision 659)
+++ /YC3121_SDK/fw/crypt/yc_calc.c	(working copy)
@@ -1558,7 +1558,7 @@
 		__asm("NOP");
 }
 
-#define CRYPT_LIB_VERSION 0x00010001
+#define CRYPT_LIB_VERSION 0x00010002
 uint32_t CRYPT_GetVersion(void)
 {
 	return CRYPT_LIB_VERSION;
Index: yc_sm2.h
===================================================================
--- /YC3121_SDK/fw/crypt/yc_sm2.h	(revision 659)
+++ /YC3121_SDK/fw/crypt/yc_sm2.h	(working copy)
@@ -14,7 +14,7 @@
 #define SM2_KEY_BYTES		((SM2_KEY_BITS + 7) / 8)
 #define SM2_KEY_WORDS		((SM2_KEY_BYTES + 3) / 4)
 
-typedef struct 
+typedef struct
 {
 	uint32_t r[SM2_KEY_WORDS];
 	uint32_t s[SM2_KEY_WORDS];
@@ -82,7 +82,6 @@
   * @retval nil
   */
 uint32_t SM2_Hash_Za(uint8_t *Za, uint8_t *IDa, uint16_t IDalen, SM2_EllipseParaTypeDef *para, SM2_PublicKeyTypeDef *key, uint16_t block_size);
-uint32_t SM2_Hash_z(uint8_t *Za, uint8_t *IDa, uint16_t IDalen, SM2_EllipseParaTypeDef *para, SM2_PublicKeyTypeDef *key);
 
 /**
   * @method	SM2_Hash_e

Index: yc_sm2.c
===================================================================
--- /YC3121_SDK/fw/crypt/yc_sm2.c	(revision 659)
+++ /YC3121_SDK/fw/crypt/yc_sm2.c	(working copy)
@@ -1258,8 +1258,10 @@
 
 	uint32_t p_c[9]={0},n_c[9]={0},n1_c[9]={0};
 	ecc_security security_t;
-	security_t.mask=INT_MASK_CLOSE;
-	security_t.verify=EC_PARA_VERIFY_CLOSE;
+	// security_t.mask=INT_MASK_CLOSE;
+	// security_t.verify=EC_PARA_VERIFY_CLOSE;
+	security_t.mask=INT_MASK_OPEN;
+	security_t.verify=EC_PARA_VERIFY_OPEN;
 
 	// para_t.p = para->p;
 	// para_t.a = para->a;
Index: libyc_crypt.a
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
