Marino Faggiana 7 年之前
父节点
当前提交
168d8b1435
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      iOSClient/Security/NCEntoToEndInterface.swift

+ 3 - 1
iOSClient/Security/NCEntoToEndInterface.swift

@@ -477,7 +477,9 @@ class NCEntoToEndInterface : NSObject, OCNetworkingDelegate  {
                 
                 let privateKey = CCUtility.getEndToEndPrivateKey(appDelegate.activeAccount)
                 
-                let x = NCEndToEndEncryption.sharedManager().decryptMetadata(encrypted, key: privateKey, iv: iv, tag: tag)
+                let x = NCEndToEndEncryption.sharedManager().decryptAsymmetricData(encrypted.data(using: .utf8), privateKey: privateKey)
+                
+                //let x = NCEndToEndEncryption.sharedManager().decryptMetadata(encrypted, key: privateKey, iv: iv, tag: tag)
                 
                 
                 print(metadata)