Index: fw/crypt/libyc_crypt.a
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fw/crypt/yc_calc.c
===================================================================
--- /YC3121_SDK/fw/crypt/yc_calc.c	(revision 785)
+++ /YC3121_SDK/fw/crypt/yc_calc.c	(working copy)
@@ -1558,7 +1558,7 @@
 		__asm("NOP");
 }
 
-#define CRYPT_LIB_VERSION 0x00010002
+#define CRYPT_LIB_VERSION 0x00010003
 uint32_t CRYPT_GetVersion(void)
 {
 	return CRYPT_LIB_VERSION;
Index: fw/crypt/yc_crypt.lib
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: fw/crypt/yc_sm2.c
===================================================================
--- /YC3121_SDK/fw/crypt/yc_sm2.c	(revision 785)
+++ /YC3121_SDK/fw/crypt/yc_sm2.c	(working copy)
@@ -10,6 +10,12 @@
 //          klen   -需要派生得到的长度
 //输出参数： K      -计算后返回的内容（二进制值）,分配空间至少为需要keylen
 //返回值：RET_SM2_KDF_SUCCESS表示成功，RET_SM2_KDF_FAILURE表示失败
+
+static void SM2_DecEncSpeed(void)
+{
+	SYSCTRL_RSACLK = 7;
+}
+
 uint32_t SM2_KDF(uint8_t *K, uint32_t klen,  uint8_t *Z, uint32_t zlen)
 {
     uint8_t cdgst[32]={0}; //摘要
@@ -479,6 +485,7 @@
 							SM2_PrivateKeyTypeDef *key, SM2_EllipseParaTypeDef *para,
 							rng_callback f_rng, void *p_rng, uint8_t config)
 {
+    SM2_DecEncSpeed();
 	uint32_t i,ret;
 	calc_operand operand;
 	uint32_t *pdata;
@@ -790,7 +797,8 @@
 							SM2_PublicKeyTypeDef *key, SM2_EllipseParaTypeDef *para,
 							rng_callback f_rng, void *p_rng, uint8_t config)
 {
-		uint32_t i,ret;
+    SM2_DecEncSpeed();
+    uint32_t i,ret;
 	uint32_t z1[9],z2[9] = {0};
 	calc_operand operand;
 	SM2_PointTypeDef c1 = {0},c2 = {0};
@@ -1036,6 +1044,7 @@
 					 SM2_PublicKeyTypeDef *key,  SM2_EllipseParaTypeDef *para,
 					rng_callback f_rng, void *p_rng,uint8_t config)
 {
+    SM2_DecEncSpeed();
 	uint32_t i,ret;
 
 	uint32_t k[9]={0x49DD7B4F,0x18E5388D,0x5546D490,0x8AFA1742,0x3D957514,0x5B92FD6C,0x6ECFC2B9,0x4C62EEFD};
@@ -1247,6 +1256,7 @@
 					 SM2_PrivateKeyTypeDef *key,  SM2_EllipseParaTypeDef *para,
 					rng_callback f_rng, void *p_rng,uint8_t config)
 {
+    SM2_DecEncSpeed();
 	uint32_t i,ret;
 	uint32_t k[9]={0};
 	uint8_t data_temp[84]={0};
