瀏覽代碼

clear code

Marino Faggiana 7 年之前
父節點
當前提交
7fc5c8226e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      iOSClient/Security/NCClientEncryption.m

+ 2 - 2
iOSClient/Security/NCClientEncryption.m

@@ -267,7 +267,6 @@ cleanup:
 
     if (decryptedData != nil)
         [decryptedData writeToFile:[NSString stringWithFormat:@"%@/%@", activeUrl, @"decrypted.jpg"] atomically:YES];
-    
 }
 
 NSData *cipherOperation(NSData *contentData, NSData *keyData, NSData *initVectorData, CCOperation operation)
@@ -284,8 +283,9 @@ NSData *cipherOperation(NSData *contentData, NSData *keyData, NSData *initVector
     bzero(cIv, kCCBlockSizeAES128);
     [initVectorData getBytes:cIv length:kCCBlockSizeAES128];
     
+    // tag
     NSMutableData *tag = [NSMutableData dataWithLength:kCCBlockSizeAES128];
-    size_t  tagLength = kCCBlockSizeAES128;
+    size_t tagLength = kCCBlockSizeAES128;
     
     CCCryptorStatus cryptStatus = CCCryptorGCM(operation,
                                                kCCAlgorithmAES128,