Marino Faggiana vor 7 Jahren
Ursprung
Commit
f227477d4c
1 geänderte Dateien mit 1 neuen und 5 gelöschten Zeilen
  1. 1 5
      iOSClient/Security/NCEndToEndEncryption.m

+ 1 - 5
iOSClient/Security/NCEndToEndEncryption.m

@@ -668,12 +668,8 @@ cleanup:
     if (! status)
         return NO;
     
-    //     if(!EVP_DecryptUpdate(ctx, ptext, &plen, ciphertext, ciphertext_length - 16)) {
-    //    int ret = EVP_DecryptFinal_ex(ctx, ptext + plen, &len);
-
     //Finalise the encryption
-    len = pPlainLen;
-    int statusEND = EVP_DecryptFinal_ex(ctx,(unsigned char*)pPlain + pPlainLen, (int *)&len);
+    EVP_DecryptFinal_ex(ctx,NULL, &pPlainLen);
     
     // Free
     EVP_CIPHER_CTX_free(ctx);