Marino Faggiana 7 年 前
コミット
ea065eac1e
1 ファイル変更2 行追加2 行削除
  1. 2 2
      iOSClient/Security/NCEndToEndEncryption.m

+ 2 - 2
iOSClient/Security/NCEndToEndEncryption.m

@@ -626,7 +626,7 @@ cleanup:
         return NO;
     
     // Provide the message to be encrypted, and obtain the encrypted output
-    [plainData appendBytes:"\x0" length:16];
+    [plainData appendBytes:"\x0" length:16]; // add TAG JAVA compatibility
     *cipherData = [NSMutableData dataWithLength:[plainData length]];
     unsigned char * ctBytes = [*cipherData mutableBytes];
     int pCipherLen = 0;
@@ -712,7 +712,7 @@ cleanup:
         return NO;
     
     // Provide the message to be decrypted, and obtain the plaintext output
-    cipherData = [cipherData subdataWithRange:NSMakeRange(0, cipherData.length - 16)]; // remove TAG
+    cipherData = [cipherData subdataWithRange:NSMakeRange(0, cipherData.length - 16)]; // remove TAG JAVA compatibility
     *plainData = [NSMutableData dataWithLength:([cipherData length])];
     int pPlainLen = 0;
     unsigned char * pPlain = [*plainData mutableBytes];