Marino Faggiana 7 سال پیش
والد
کامیت
269c07b454
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      iOSClient/Security/NCEndToEndEncryption.m

+ 2 - 0
iOSClient/Security/NCEndToEndEncryption.m

@@ -648,6 +648,7 @@ cleanup:
     
     
     // add TAG JAVA compatibility
     // add TAG JAVA compatibility
     [*cipherData appendData:*tagData];
     [*cipherData appendData:*tagData];
+    // --------------------------
     
     
     // Free
     // Free
     EVP_CIPHER_CTX_free(ctx);
     EVP_CIPHER_CTX_free(ctx);
@@ -718,6 +719,7 @@ cleanup:
     
     
     // remove TAG JAVA compatibility
     // remove TAG JAVA compatibility
     cipherData = [cipherData subdataWithRange:NSMakeRange(0, cipherData.length - 16)];
     cipherData = [cipherData subdataWithRange:NSMakeRange(0, cipherData.length - 16)];
+    // -----------------------------
     
     
     // Provide the message to be decrypted, and obtain the plaintext output
     // Provide the message to be decrypted, and obtain the plaintext output
     *plainData = [NSMutableData dataWithLength:([cipherData length])];
     *plainData = [NSMutableData dataWithLength:([cipherData length])];