소스 검색

remove old code test

Marino Faggiana 7 년 전
부모
커밋
bfae2c324c
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      iOSClient/Security/NCEndToEndEncryption.m

+ 3 - 1
iOSClient/Security/NCEndToEndEncryption.m

@@ -601,15 +601,17 @@ cleanup:
     [initVectorData getBytes:cIv length:AES_IVEC_LENGTH];
     
     // ----- DEBUG Print -----
-    printData = [NSData dataWithBytes:cIv length:AES_KEY_LENGTH];
+    printData = [NSData dataWithBytes:cIv length:AES_IVEC_LENGTH];
     NSLog(@"IV %@", [printData base64EncodedStringWithOptions:0]);
     // -----------------------
     
     // set up tag
+    /*
     NSData *tagData = [[NSData alloc] initWithBase64EncodedString:tag options:0];
     unsigned char cTag[AES_GCM_TAG_LENGTH];
     bzero(cTag, AES_GCM_TAG_LENGTH);
     [tagData getBytes:cTag length:AES_GCM_TAG_LENGTH];
+    */
     
     /* verify tag if exists*/
     if (tag) {