Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3283462
D4383.id14222.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
D4383.id14222.diff
View Options
diff --git a/native/ios/Comm.xcodeproj/project.pbxproj b/native/ios/Comm.xcodeproj/project.pbxproj
--- a/native/ios/Comm.xcodeproj/project.pbxproj
+++ b/native/ios/Comm.xcodeproj/project.pbxproj
@@ -65,6 +65,8 @@
CB64AA76284F4DC900460699 /* ThreadOperations.cpp in Sources */ = {isa = PBXBuildFile; fileRef = CB64AA74284F4DC900460699 /* ThreadOperations.cpp */; };
CBEA4A8A286EECCC00DFCFF5 /* NonBlockingLock.mm in Sources */ = {isa = PBXBuildFile; fileRef = CBEA4A89286EECCC00DFCFF5 /* NonBlockingLock.mm */; };
CBEA4A8B286EED0400DFCFF5 /* NonBlockingLock.mm in Sources */ = {isa = PBXBuildFile; fileRef = CBEA4A89286EECCC00DFCFF5 /* NonBlockingLock.mm */; };
+ CBEA4A8E286EED6A00DFCFF5 /* EncryptedFileUtils.mm in Sources */ = {isa = PBXBuildFile; fileRef = CBEA4A8D286EED6A00DFCFF5 /* EncryptedFileUtils.mm */; };
+ CBEA4A8F286EED8000DFCFF5 /* EncryptedFileUtils.mm in Sources */ = {isa = PBXBuildFile; fileRef = CBEA4A8D286EED6A00DFCFF5 /* EncryptedFileUtils.mm */; };
D7DB6E0F85B2DBE15B01EC21 /* libPods-Comm.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 994BEBDD4E4959F69CEA0BC3 /* libPods-Comm.a */; };
F02C296C528B51ADAB5AA19D /* libPods-NotificationService.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3EE4DCB430B05EC9DE7D7B01 /* libPods-NotificationService.a */; };
/* End PBXBuildFile section */
@@ -213,6 +215,7 @@
CBEA4A88286EEC9100DFCFF5 /* NonBlockingLock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = NonBlockingLock.h; path = Comm/TemporalMessageStorage/NonBlockingLock.h; sourceTree = "<group>"; };
CBEA4A89286EECCC00DFCFF5 /* NonBlockingLock.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = NonBlockingLock.mm; path = Comm/TemporalMessageStorage/NonBlockingLock.mm; sourceTree = "<group>"; };
CBEA4A8C286EED3900DFCFF5 /* EncryptedFileUtils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = EncryptedFileUtils.h; path = Comm/TemporalMessageStorage/EncryptedFileUtils.h; sourceTree = "<group>"; };
+ CBEA4A8D286EED6A00DFCFF5 /* EncryptedFileUtils.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = EncryptedFileUtils.mm; path = Comm/TemporalMessageStorage/EncryptedFileUtils.mm; sourceTree = "<group>"; };
F53DA7B3F26C2798DCE74A94 /* Pods-Comm.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Comm.debug.xcconfig"; path = "Target Support Files/Pods-Comm/Pods-Comm.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */
@@ -564,6 +567,7 @@
CBEA4A87286EEC7600DFCFF5 /* TemporalMessageStorage */ = {
isa = PBXGroup;
children = (
+ CBEA4A8D286EED6A00DFCFF5 /* EncryptedFileUtils.mm */,
CBEA4A8C286EED3900DFCFF5 /* EncryptedFileUtils.h */,
CBEA4A89286EECCC00DFCFF5 /* NonBlockingLock.mm */,
CBEA4A88286EEC9100DFCFF5 /* NonBlockingLock.h */,
@@ -934,6 +938,7 @@
71009A7726FDCA67002C8453 /* tunnelbroker.pb.cc in Sources */,
726E5D752731A4790032361D /* NetworkModule.cpp in Sources */,
71BF5B7526B401D300EDE27D /* Tools.cpp in Sources */,
+ CBEA4A8E286EED6A00DFCFF5 /* EncryptedFileUtils.mm in Sources */,
13B07FBC1A68108700A75B9A /* AppDelegate.mm in Sources */,
71142A7726C2650B0039DCBD /* CommSecureStoreIOSWrapper.mm in Sources */,
CB38F2B1286C6C870010535C /* MessageOperationsUtilities.cpp in Sources */,
@@ -964,6 +969,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
+ CBEA4A8F286EED8000DFCFF5 /* EncryptedFileUtils.mm in Sources */,
CBEA4A8B286EED0400DFCFF5 /* NonBlockingLock.mm in Sources */,
CB38F2C0286C6CDF0010535C /* MessageOperationsUtilities.cpp in Sources */,
CB1648AF27CFBE6A00394D9D /* CryptoModule.cpp in Sources */,
diff --git a/native/ios/Comm/TemporalMessageStorage/EncryptedFileUtils.mm b/native/ios/Comm/TemporalMessageStorage/EncryptedFileUtils.mm
new file mode 100644
--- /dev/null
+++ b/native/ios/Comm/TemporalMessageStorage/EncryptedFileUtils.mm
@@ -0,0 +1,12 @@
+#import "EncryptedFileUtils.h"
+#import "CommSecureStoreIOSWrapper.h"
+#import "Logger.h"
+#import <CommonCrypto/CommonCryptor.h>
+
+@interface EncryptedFileUtils ()
++ (NSData *)_runCryptor:(NSData *)binary
+ operation:(CCOperation)operation
+ error:(NSError **)error;
++ (NSData *)_encryptData:(NSString *)data error:(NSError **)error;
++ (NSString *)_decryptData:(NSString *)data error:(NSError **)error;
+@end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 11:42 AM (22 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2523450
Default Alt Text
D4383.id14222.diff (4 KB)
Attached To
Mode
D4383: Extend interface for elementary file operations with encryption-decryption layer by Obj-C style private interface for encryption end decryption
Attached
Detach File
Event Timeline
Log In to Comment