|
|
@@ -174,6 +174,7 @@ public:
|
|
|
|
|
|
ErrorCodeEnum DecryptWithPubKey(const CBlob &enc_data, CBlob &raw_data)
|
|
|
{
|
|
|
+ /*
|
|
|
ErrorCodeEnum Error(Error_Succeed);
|
|
|
EnterCriticalSection(&m_lock);
|
|
|
if (!m_bKeyInitialized) {
|
|
|
@@ -190,11 +191,15 @@ public:
|
|
|
}
|
|
|
}
|
|
|
LeaveCriticalSection(&m_lock);
|
|
|
- return Error;
|
|
|
+ */
|
|
|
+ LogWarn(Severity_Low, Error_Cancel, 0, "DecWithRsaPubKey not support in sm os!");
|
|
|
+
|
|
|
+ return Error_Cancel;
|
|
|
}
|
|
|
|
|
|
ErrorCodeEnum EncryptWithPriKey(const CBlob &raw_data, CBlob &enc_data)
|
|
|
{
|
|
|
+ /*
|
|
|
ErrorCodeEnum Error(Error_Succeed);
|
|
|
EnterCriticalSection(&m_lock);
|
|
|
if (!m_bKeyInitialized) {
|
|
|
@@ -219,7 +224,9 @@ public:
|
|
|
}
|
|
|
}
|
|
|
LeaveCriticalSection(&m_lock);
|
|
|
- return Error;
|
|
|
+ */
|
|
|
+ LogWarn(Severity_Low, Error_Cancel, 0, "EncryptWithPriKey not support in sm os!");
|
|
|
+ return Error_Cancel;
|
|
|
}
|
|
|
ErrorCodeEnum DecryptWithPriKey(const CBlob &enc_data, CBlob &raw_data)
|
|
|
{
|