Marino Faggiana %!s(int64=7) %!d(string=hai) anos
pai
achega
c3211b806e
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      iOSClient/Security/NCEntoToEndInterface.swift

+ 5 - 0
iOSClient/Security/NCEntoToEndInterface.swift

@@ -475,6 +475,11 @@ class NCEntoToEndInterface : NSObject, OCNetworkingDelegate  {
                 let tag = element.authenticationTag
                 let encrypted = element.encrypted
                 
+                let privateKey = CCUtility.getEndToEndPrivateKey(appDelegate.activeAccount)
+                
+                let x = NCEndToEndEncryption.sharedManager().decryptMetadata(encrypted, key: privateKey, iv: iv, tag: tag)
+                
+                
                 print(metadata)
 
             }